synchronise parametrised fixtures #8278
Unanswered
pablo-esteban
asked this question in
Q&A
Replies: 2 comments
-
Do you mean you'd like a Currently pytest does not provide this. I think @RonnyPfannschmidt might have some things in mind that could help with that, but not in current pytest (short of parsing the string itself). |
Beta Was this translation helpful? Give feedback.
0 replies
-
For the particular example, just use Parametrize directly with 2 arguments If your case is more complex please expand the example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
is there a way of synchronising the value of parametrising fixtures? For example:
The example above is exactly what i want, but it is a hack: it is undesirable that the keys in the
_expected
dictionary are coupled to the test function name. I could not find a way of knowing the id of the current request, is that possible?Beta Was this translation helpful? Give feedback.
All reactions