-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pytest faker fixture is not session-based #2055
Comments
Thank you for the report @jgentil ! Do you mind submitting a Pull Request |
Yep I'd be glad to! Would you prefer it be a separate "feature" that implements a session-based faker, or consider it a bug and fix this specific faker to be session-based? I'm worried about backward-compatibility if this has been used often or has become expected behavior. |
I would consider it a bug, but still increment the MAJOR version when we release |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
The faker documentation states here:
But here it clearly is not defined to the session:
faker/faker/contrib/pytest/plugin.py
Lines 23 to 25 in e0e0460
and there's even a "hidden" session-scoped faker:
faker/faker/contrib/pytest/plugin.py
Lines 9 to 11 in e0e0460
I noticed that this functionality diverges from the original pytest-faker.
Steps to reproduce
I need to scope a fixture that users faker to a session and I am finding it impossible to do.
The text was updated successfully, but these errors were encountered: