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
--fixtures doesn't display all fixtures from conftest.py in sub directories #764
Comments
Original comment by Floris Bruynooghe (BitBucket: flub, GitHub: flub): Fixtures visibility is limited by the scope they are defined in, so: I'm actually surprised you get |
Original comment by Tom V (BitBucket: tomviner, GitHub: tomviner): Interesting. I wondered if it might be that it stops at the first conftest.py it finds. But no, I tried adding a few more
So which are found now?
You see So I'm not quite sure what the rule is now! |
Original comment by Floris Bruynooghe (BitBucket: flub, GitHub: flub): I suspect the precense of
I get this:
Which is what I would be expecting. It seems like the lack of |
ok, makes sense to me. Could you close this issue please @flub , I don't have perms as @pytestbot created it. |
Originally reported by: Tom V (BitBucket: tomviner, GitHub: tomviner)
Sample project to reproduce:
https://github.com/tomviner/bug-report-pytest-fixtures-list
Given I have a project with two app folders. Both apps have test folders with a conftest.py that both define a fixture. Also both apps have test files that use the respective app's fixture.
i.e.:
Yet when I run
py.test --fixtures
orpy.test --fixtures --traceconfig
I only see one of those fixtures:fixy2
is not shown.See https://github.com/tomviner/bug-report-pytest-fixtures-list for full output.
The text was updated successfully, but these errors were encountered: