I am trying to create a custom fixture based on value created from a step's target_fixture with no success.
I do understand custom and target_fixture are not exactly the same, but I wonder if there is a way I can make it work.
For example:
yes that's the only way, as we inject fixtures only when the step is executed, so it's just not possible to access its value before the step is executed
I am trying to create a custom fixture based on value created from a step's
target_fixture
with no success. I do understandcustom
andtarget_fixture
are not exactly the same, but I wonder if there is a way I can make it work. For example:When I try to use a another step that inherit
storyboard
custom fixture, I get this error:As workaround that I prefer not to do, I defined the storyboard in
conftest.py
and I retrieve thetarget_fixture
value like this: