How can I call a fixture twice in an item? #13244
Replies: 2 comments
-
fine, i got a poiont:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It's not clear what pattern you ask for The code example removed the nuance and leaves a specific potentially misguided implementation idea we generally would discourage from (classic case of xy problem) Fixtures happen at most one per test as of now A recommended pattern to create multiple objects from a fixture is to have a factory fixture For a more specific answer please elaborate on the actual usecase |
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
-
This is an example of transitive testing. The test objective is to make a phone call: the result of the call can be called again. It is easy to verify that A calls B (via call1), but I hope that after verifying that A calls B, B can also call C. I hope to make the code structure as efficient as possible, but I have encountered the following problem.
Beta Was this translation helpful? Give feedback.
All reactions