Skip to content

Commit

Permalink
fix(pytest): make fixture session scoped (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier authored Nov 12, 2024
1 parent 15b0d2b commit 50d5260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faker/contrib/pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _session_faker(request):
return Faker(locale=locale)


@pytest.fixture()
@pytest.fixture(scope="session")
def faker(request):
"""Fixture that returns a seeded and suitable ``Faker`` instance."""
if "faker_locale" in request.fixturenames:
Expand Down

0 comments on commit 50d5260

Please # to comment.