pytest-watch
pytest-watch copied to clipboard
sys.path with `-m pytest_watch` is not the same as with `-m pytest`
I have my test in /app/test/test_foo.py
When I run python -m pytest
from the /app
directory I get a sys.path
that includes both /app/test
and /app
. When I run python -m pytest_watch
I get only the former.
Do you have a workaround to get /app
in the sys.path
? I'm using a shell script with something like:
pytest-watch --runner "python -m pytest --durations=10 --durations-min=0.2 -s --cov=app --cov-report=term-missing tests "${@}""
Doesnt seem to give me the results I wish it would