Commit 7e8f190
committed
test: make the src package importable via pythonpath instead of package files
The four empty __init__.py under tests/ existed only so pytest would walk up
to the repo root and put it on sys.path, which a bare 'poetry run pytest'
needs to import src. Setting pythonpath = ["."] says the same thing in one
line, in the place that already configures the suite.
The 'src' entry it replaces was vestigial: nothing imports a module without
the src. prefix.
The __init__.py under src/ stay. They do a different job -- they are what
makes coverage.py descend into the package and report modules that no test
imports.1 parent b5d2f5f commit 7e8f190
5 files changed
Lines changed: 1 addition & 1 deletion
File tree
- tests
- config
- integration
- listeners
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments