File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ just execute:
23
23
pytest
24
24
```
25
25
26
+ ### Paths
27
+
28
+ The ` PYTHONPATH ` and ` MYPYPATH ` environment variables, if set, are passed to ` mypy ` on invocation.
29
+ This may be helpful if you are testing a local plugin and need to provide an import path to it.
30
+
31
+ Be aware that when ` mypy ` is run in a subprocess (the default) the test cases are run in temporary working directories
32
+ where relative paths such as ` PYTHONPATH=./my_plugin ` do not reference the directory which you are running ` pytest ` from.
33
+ If you encounter this, consider invoking ` pytest ` with ` --mypy-same-process ` or make your paths absolute,
34
+ e.g. ` PYTHONPATH=$(pwd)/my_plugin pytest ` .
35
+
36
+
26
37
### What is a test case?
27
38
28
39
In general each test case is just an element in an array written in a properly formatted ` YAML ` file.
You can’t perform that action at this time.
0 commit comments