pytest-watch icon indicating copy to clipboard operation
pytest-watch copied to clipboard

sys.path with `-m pytest_watch` is not the same as with `-m pytest`

Open togakangaroo opened this issue 5 years ago • 1 comments

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.

togakangaroo avatar Aug 16 '19 19:08 togakangaroo

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

theonesud avatar Jul 31 '21 13:07 theonesud