-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invocation-scoped fixtures #1681
Comments
This was reverted by #1811 just before the |
What's the state of this? |
still deferred due to required internal refactoring |
While the feature proposed in pytest-dev/pytest#1681 is interesting and would serve as base for a more elegant solution to pytest-dev#136, adding those supplementary mockers allows this plugin to be used in other scopes. Fix pytest-dev#136
While the feature proposed in pytest-dev/pytest#1681 is interesting and would serve as a base for a more elegant solution to pytest-dev#136, adding those supplementary mockers allows this plugin to be used in other scopes. Fix pytest-dev#136
Based on the discussion on #6354, I guess we are still waiting for the some refactoring? I would love to see this happening and even willing to help, although probably I assume this refactoring should be relatively complex. What would be the refactoring needed? EDIT: There is some discussion in #1794 |
the basic gist is that its not clear whats needed for the refactoring, the current structures make incredibly hard to get right, we don't yet know what structures would make it simple |
Add support for
"invocation"
scoped fixtures, which will assume the scope of the requesting fixture. Each scope might have an independent cached-copy of a invocation scoped fixture.The text was updated successfully, but these errors were encountered: