Skip to content

Fixture variants with different parameters currently cannot coexist #8350

Answered by RonnyPfannschmidt
BorjaEst asked this question in Q&A
Discussion options

You must be logged in to vote

xdist has examples on how to sync fixtures between local processes

as for having multiple versions coexist, a common pattern is to have a manager type fixture that deals teaedown and having utility fixture that use the manager for setup and teardown, so that setup happens as needed and teardown after usage

the utility fixtures would still be recreated multiple times, but the work would cache in the manager fixture

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BorjaEst
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants