From 7c825e15cfd96170d95dd370aa825a9756900ee0 Mon Sep 17 00:00:00 2001
From: bronsen <kontakt+gitcommit@nrrd.de>
Date: Sat, 15 Mar 2025 22:33:14 +0100
Subject: [PATCH] [test] widen scope of random-name fixture

---
 collector/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))