Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
togakangaroo opened this issue Aug 16, 2019 · 1 comment
Open

Comments

@togakangaroo
Copy link

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.

@theonesud
Copy link

theonesud commented Jul 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants