From 04a6369b74d27360ab8d052e1e7fce2ae76041a3 Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Wed, 31 Jul 2024 12:57:07 +0200 Subject: [PATCH] fix scope of fixture --- tests/app/integration/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/integration/conftest.py b/tests/app/integration/conftest.py index 31ff0ad0..02756a68 100644 --- a/tests/app/integration/conftest.py +++ b/tests/app/integration/conftest.py @@ -37,7 +37,7 @@ TEST_GITHUB_TOKEN_ENV_NAME = f"AUTH_{GITHUB_TOKEN_ENV_NAME}" -@pytest.fixture(scope="session", name="randomize_github_auth_method", autouse=True) +@pytest.fixture(scope="function", name="randomize_github_auth_method", autouse=True) def fixture_randomize_github_auth_method(monkeypatch: pytest.MonkeyPatch) -> None: """Randomize the GitHub authentication method.