From 8fb7989e088e29d862a5ebffa96d1ef618beac1f Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Tue, 12 Mar 2024 12:57:50 +0000 Subject: [PATCH] Fix wrong scope for Keycloak container fixture --- tests/test_oauth_client_secret.py | 2 +- tests/test_oauth_signed_jwt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_oauth_client_secret.py b/tests/test_oauth_client_secret.py index d9acb2d..54480ae 100644 --- a/tests/test_oauth_client_secret.py +++ b/tests/test_oauth_client_secret.py @@ -17,7 +17,7 @@ class TestKeycloakOAuth2ClientSecret: RESOURCES_PATH = Path(__file__).parent.absolute() / "resources/keycloak" - @pytest.fixture(scope="session") + @pytest.fixture(scope="class") def keycloak(self) -> Generator[KeycloakAdmin, None, None]: container = ( KeycloakContainer() diff --git a/tests/test_oauth_signed_jwt.py b/tests/test_oauth_signed_jwt.py index 5b14215..c103ac1 100644 --- a/tests/test_oauth_signed_jwt.py +++ b/tests/test_oauth_signed_jwt.py @@ -18,7 +18,7 @@ class TestKeycloakOAuth2SignedJWT: RESOURCES_PATH = Path(__file__).parent.absolute() / "resources/keycloak" - @pytest.fixture(scope="session") + @pytest.fixture(scope="class") def keycloak(self) -> Generator[KeycloakAdmin, None, None]: container = ( KeycloakContainer()