Open jgentil opened 1 month ago
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
The faker documentation states here:
But here it clearly is not defined to the session: https://github.com/joke2k/faker/blob/e0e0460ff715032ad5eda184d2fcb3720ce26b9c/faker/contrib/pytest/plugin.py#L23-L25 and there's even a "hidden" session-scoped faker: https://github.com/joke2k/faker/blob/e0e0460ff715032ad5eda184d2fcb3720ce26b9c/faker/contrib/pytest/plugin.py#L9-L11
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.