pytest errors out during collection:
ERROR tests/unit/test_phase19_beta.py
import file mismatch:
imported module 'test_phase19_beta' -> tests/integration/test_phase19_beta.py
wanted -> tests/unit/test_phase19_beta.py
Cause: tests/unit/test_phase19_beta.py and tests/integration/test_phase19_beta.py share a basename and the tests/ dirs have no __init__.py, plus stale __pycache__.
Fix: add __init__.py to tests/unit and tests/integration (or rename one file) and clear test caches.
Found at commit ec60ef4.
pytesterrors out during collection:Cause:
tests/unit/test_phase19_beta.pyandtests/integration/test_phase19_beta.pyshare a basename and thetests/dirs have no__init__.py, plus stale__pycache__.Fix: add
__init__.pytotests/unitandtests/integration(or rename one file) and clear test caches.Found at commit
ec60ef4.