I'd like to ask if pytest test cases support dynamically modifying the scope of fixtures during runtime. #13978
Replies: 3 comments
-
|
please outline the use-case - theres ways to have specific configruations be more accomodating but theres no general/internal support |
Beta Was this translation helpful? Give feedback.
-
|
The current scope of my fixture is at the function level. However, in certain situations, I would like for the fixture's scope to be at the module level so that all tests within the file can share the same fixture. |
Beta Was this translation helpful? Give feedback.
-
|
You'd need to be a bit less abstract if you want a good answer. You can pass a callable to In any case, converting this to a discussion as this is nothing actionable for pytest. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to ask if pytest test cases support dynamically modifying the scope of fixtures during runtime.
Beta Was this translation helpful? Give feedback.
All reactions