You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally I think of contexts as independent of each other, which allows for flexible reuse, but practically it seems useful to be able to get existing test arguments in further contexts. For example Flask-Attest creates a context that returns the app; in other contexts one might need the app. There's current_app but it relies on context-locals and might not apply in other situations.
So, let the argspecs of context functions work like that of tests:
Possibly related to #93, I recall there may even have been issues with current_app; research needed for if the request context is set up correctly before other contexts, or if this is a nested() issue with Attest.
Ideally I think of contexts as independent of each other, which allows for flexible reuse, but practically it seems useful to be able to get existing test arguments in further contexts. For example Flask-Attest creates a context that returns the app; in other contexts one might need the app. There's current_app but it relies on context-locals and might not apply in other situations.
So, let the argspecs of context functions work like that of tests:
The text was updated successfully, but these errors were encountered: