-
Notifications
You must be signed in to change notification settings - Fork 16
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.mark.usefixtures
fixtures marked as unused
#10
Comments
hi @yedpodtrzitko, thanks for taking your time to open this issue. that's strange, this behavior should be covered already in this test. |
Thanks for your answer. That's really strange, indeed. The fixtures in project I was testing it with are quite mess, so I'll try extract a minimal reproducible example. |
@yedpodtrzitko could you please try to replicate this problem again with the newest version 1.0.1? |
Hi, Anyway, I tried to update to the new version. The output is much cleaner now. Before this release, there was a lot of items in the output as this:
Now this is gone, which is great. There is only one fixture in the output left, which is reported as unused, even if it is used. But after investigating a bit, I figured out the reason - the actual test was missing So the reporting is actually correct, but for a different reason than I thought. Example below:
This makes me think if it would be possible to make the output somehow hinting, that maybe the fixture is used, but for a thing, which is not a test. But that's definitely out of scope of this issue, so I'm gonna close it. Thanks for your response, keep up the great work 👍 |
Hi,
this library is quite helpful, thanks for creating it.
However there's an issue when marker
pytest.mark.usefixtures
[1] is used - such fixture is marked as unused anyway.Cheers,
yed
[1] https://docs.pytest.org/en/latest/fixture.html#using-fixtures-from-classes-modules-or-projects
The text was updated successfully, but these errors were encountered: