File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,18 @@ pdm run pytest
64
64
rye run pytest
65
65
```
66
66
67
+ #### Running tests with pytest and the TDD Theme
68
+ This configuration ensures the entire namespace of your brick is included
69
+ when ` pytest ` does it's test lookup. Without it, ` pytest ` will raise errors
70
+ because of the default way it does module lookups. This occurs when using Polylith with the _ TDD_ theme.
71
+
72
+ ``` toml
73
+ [tool .pytest .ini_options ]
74
+ addopts = [
75
+ " --import-mode=importlib" ,
76
+ ]
77
+ ```
78
+
67
79
### Running tests for changed code
68
80
The __ Python tools__ for the Polylith Architecture doesn't (yet) have a specific ` test ` command.
69
81
You can use ` poly diff ` and your favorite test runner to only run the corresponding tests for changed code.
You can’t perform that action at this time.
0 commit comments