Open Gaasmann opened 3 years ago
Step defined fixture is injected after module/conftest/plugin fixtures. Just one reason to use target_fixture is to modify an already defined environment for the test. You could define "the_fixture" as the usual pytest fixture and modify it from the given step.
Hello,
I'm trying to use an autouse fixture to do some cleanup after a test. I'm defining a fixture depending of the given step but that doesn't seem to work. I'm not sure why or how to fix that or if this is a bug.
Setup info
Feature file
Steps file
pytest --setup-plan result
If you look at the list of available fixtures, you'll see "pytestbdd_given_the given step defines a fixture", I'm not sure how to use/reference that one or if it would work like the_fixture but it seems pytest is somehow aware of the given step.
Thanks