-
-
Notifications
You must be signed in to change notification settings - Fork 573
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 error in pytest.ini #7455
Comments
Hello @ahmedhosssam, Can you tell me how you installed the test dependencies within your virtual environment? Our test suite requires pytest and several other plugins which should be installed if you do If it does not work, there is a bug in either our package configuration or the newcomers guide. |
Yes, now it works after Instead of: It will be: I don't know if this is right or not, but I think the tests packages are as important as the dev packages. |
In theory I will need to check. |
At least for me, when I run it, it checks for pytest and all of the other test dependencies. I am not sure how to explain why it didn't work for you. |
Maybe I did something wrong when I was setting up the virtual environment, I don't know. |
I am a new contributor here (coming from GSOC), I followed the newcomers guide till the end, and I reached this error when I ran
pytest
command:ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] pytest: error: unrecognized arguments: --dist inifile: /home/ahmed/fun/sunpy/pytest.ini rootdir: /home/ahmed/fun/sunpy
I think the problem is in the
pytest.ini
file, typically inaddopts
variable. If I commentedaddopts
pytest runs but it gives me more than a hundred errors (missing packages) so I don't know what to do right now.The text was updated successfully, but these errors were encountered: