How to request a fixture in another fixture, without passing it as a parameter #10762
Unanswered
alexander-soare
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm aware of
pytest.mark.usefixtures
, and I find it useful for the very reasons stated in the documentation: if your test does not use the return value of the fixture, but depends on some global effects it produces, then it's not sensible to have it as a dummy argument, even if you wish to request it.How do I solve the same problem if I need my fixture to request another fixture, but it's not sensible to pass the requested fixture is a parameter?
Beta Was this translation helpful? Give feedback.
All reactions