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.
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.
No, Parameters ough@t to be immutable
If it's something mutable, make it in a fixture