-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fixture is not overriden in the child conftest.py when running individual test file #294
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
Comments
Original comment by Oleg Pidsadnyi (BitBucket: olegp, GitHub: olegp): Holger, maybe you can give a little hint where to look at? |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): The PR is living here: https://bitbucket.org/hpk42/pytest/pull-request/30/load-conftest-files-in-the-correct-order/diff . Would be good if you try it and maybe help to get it into mergeable state. |
Originally reported by: Oleg Pidsadnyi (BitBucket: olegp, GitHub: olegp)
If I have the package with the conftest.py:
And I have subfolder with the conftest.py:
And the test_foo.py in the same subfolder:
It works when I simply run py.test in the parent folder.
It doesn't work when I run py.test subfolder/test_foo.py
For some reason the value is 'parent', not 'child'
The text was updated successfully, but these errors were encountered: