-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pytest picking up tests in wrong location? #7293
Comments
this is a bug as pytest suport for packages is second class, and the insertion of the path in the arguments messes with the combination of the test folder finding |
I'd like to work on this. |
@RonnyPfannschmidt perhaps this was fixed in #7040? |
Seems possible, but we have validate |
@LiterallyUniqueLogin is it possible for you to test that with the latest master? Or provide a minimal reproducible example so we can try it out? |
Closing per above. |
I have two copies of a package on my computer: one which is installed (at
/storage/conda/lib/python3.7/site-packages/trtools
) and one which has been cloned from git (at/tmp/trtools_data_download/trtools
). I'm doing this because I want to test the installed package but some of the test data only exists in the repo and not in the installation.I want to test the installed package with pytest, but when I run it it is picking up the python test files from the cloned git repo and not the installation, even though I've cd'd to the root of the installation. Any idea why this is happening?
Here is the relevant output. Note the location of
test_compareSTR.py
file that is being run is not the copy in my current subdirectory.The
--datadir
argument is something my tests pick up via the instructions here. It's the only thing I can think of that could be mucking with test discovery. But I don't see how it would do that.pip list
from the virtual environment you are usingThanks for the help!
The text was updated successfully, but these errors were encountered: