From 50d526049bd71193ad27d33a7b3aae79b4e50979 Mon Sep 17 00:00:00 2001 From: Antoine Colombier <7086688+acolombier@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:58:55 +0000 Subject: [PATCH] fix(pytest): make fixture session scoped (#2117) --- faker/contrib/pytest/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faker/contrib/pytest/plugin.py b/faker/contrib/pytest/plugin.py index dab476b8a1..571e3a77a2 100644 --- a/faker/contrib/pytest/plugin.py +++ b/faker/contrib/pytest/plugin.py @@ -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: