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
@RonnyPfannschmidt confirmed that issue #3217 is a feature, not a bug. This however created hours of confusion for me as it led to test-breaking exceptions that could not be explained by the relevant pytest docs.
Describe the solution you'd like
A Python warning explaining this behaviour when manually importing session-scoped fixtures would have allowed this problem to be instantly debugged.
Alternative Solutions
Adding a warning to the aforementioned docs / the docstring of the pytest fixture scope attribute.
Additional context
Love the library. Just looking out for the next person.
The text was updated successfully, but these errors were encountered:
What's the problem this feature will solve?
@RonnyPfannschmidt confirmed that issue #3217 is a feature, not a bug. This however created hours of confusion for me as it led to test-breaking exceptions that could not be explained by the relevant pytest docs.
Describe the solution you'd like
A Python warning explaining this behaviour when manually importing session-scoped fixtures would have allowed this problem to be instantly debugged.
Alternative Solutions
Adding a warning to the aforementioned docs / the docstring of the pytest fixture scope attribute.
Additional context
Love the library. Just looking out for the next person.
The text was updated successfully, but these errors were encountered: