From 4c4cb074406cc56981d73ecf0f72498900b739e9 Mon Sep 17 00:00:00 2001 From: Antoine C Date: Fri, 11 Oct 2024 20:10:14 +0100 Subject: [PATCH] fix(pytest): make fixture session scoped --- 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: