[test] widen scope of random-name fixture
This commit is contained in:
parent
16503bea7a
commit
7c825e15cf
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue