diff --git a/src/pytest_randomly/__init__.py b/src/pytest_randomly/__init__.py index e6cd511..9cc8142 100644 --- a/src/pytest_randomly/__init__.py +++ b/src/pytest_randomly/__init__.py @@ -296,7 +296,7 @@ def _md5(string: str) -> bytes: if have_faker: # pragma: no branch - @fixture(autouse=True) + @fixture(autouse=True, scope="session") def faker_seed(pytestconfig: Config) -> int: result: int = pytestconfig.getoption("randomly_seed") return result