-
Notifications
You must be signed in to change notification settings - Fork 165
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 run fails on Defining 'pytest_plugins' in a non-top-level conftest is no longer supported
#108
Comments
Is this blocking only deployment? |
@mbukatov I see you didn't defined the folder of tests in you command so pytest is taking the ./ as default I think so than it's trying to collect everything under the path. So I think that user have to define the ./tests folder when running pytest to provide the path of tests where we have our tests. So if you will run |
You are right that pytest is trying to collect everything in the current directory. That said, making boundaries between unittests and actual tests explicit is a good idea, and I just forgot to make sure it's enforced. |
@mbukatov what do you propose to fix this? I see that boundaries are already defined in different folders which we documented should be used to run with. I think that it's normal from user to have specified test directory/path to be defined. |
Correct. It will just make pytest more resilient to such errors, esp. for deployment. |
Fixed by #109 |
Pytest run fails on
Defining 'pytest_plugins' in a non-top-level conftest is no longer supported
:This is happening because main pytest run is collecting tests from unittests directory.
The text was updated successfully, but these errors were encountered: