diff --git a/collector/conftest.py b/collector/conftest.py index 6266efd..7f0989f 100644 --- a/collector/conftest.py +++ b/collector/conftest.py @@ -15,7 +15,7 @@ def enable_db_access_for_all_tests(db): def fixture_longlived_client() -> Client: return Client() -@pytest.fixture(name="random_name") +@pytest.fixture(name="random_name", scope="session") def fixture_random_name_generator() -> Callable[[int], str]: def name_generator(length: int = 7) -> str: name = "".join(random.choices(string.ascii_letters, k=length))