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