Should pytest copy the input parameters to a parameterized fixture? #12537
-
In pytest, when using a parameterized fixture, it looks like pytest does not copy the input parameters to the fixture. Example test case.
To prevent this, should pytest copy the input parameters to fixtures? |
Beta Was this translation helpful? Give feedback.
Answered by RonnyPfannschmidt Jun 26, 2024
Replies: 1 comment 1 reply
-
No, Parameters ough@t to be immutable If it's something mutable, make it in a fixture |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by lithomas1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
No, Parameters ough@t to be immutable
If it's something mutable, make it in a fixture