You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the CI system runs pytest I get an error: pytest ./tests/test_version.py
ImportError while loading conftest 'xxx/tests/conftest.py'.
tests/conftest.py:13: in <module>
from tests.utils.fixtures import foo
E ModuleNotFoundError: No module named 'tests'
For internal reasons I cannot set PYTHONPATH.
Is there any pytest arg that would help me make this conftest import work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I git a third-party package with the following structure:
./tests/conftest.py
:When the CI system runs pytest I get an error:
pytest ./tests/test_version.py
For internal reasons I cannot set
PYTHONPATH
.Is there any
pytest
arg that would help me make this conftest import work?Beta Was this translation helpful? Give feedback.
All reactions