From 58d8049d74864c6e4772e847265f548607b183f8 Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh Date: Thu, 17 Oct 2024 09:16:26 +0100 Subject: [PATCH] deleted not used field --- src/blueapi/config.py | 2 -- tests/unit_tests/test_config.py | 1 - 2 files changed, 3 deletions(-) diff --git a/src/blueapi/config.py b/src/blueapi/config.py index 94ac16f94..1b06a7083 100644 --- a/src/blueapi/config.py +++ b/src/blueapi/config.py @@ -94,7 +94,6 @@ class OauthConfig(BlueapiBaseModel): issuer: str = "" jwks_uri: str = "" logout_url: str = "" - refresh_url: str = "" def model_post_init(self, __context: Any) -> None: response: requests.Response = requests.get(self.oidc_config_url) @@ -122,7 +121,6 @@ def model_post_init(self, __context: Any) -> None: self.issuer = issuer self.jwks_uri = jwks_uri self.logout_url = logout_url - self.refresh_url = token_url else: raise ValueError("OIDC config is missing required fields") diff --git a/tests/unit_tests/test_config.py b/tests/unit_tests/test_config.py index 99bb8514f..d4e8146a8 100644 --- a/tests/unit_tests/test_config.py +++ b/tests/unit_tests/test_config.py @@ -174,7 +174,6 @@ def test_oauth_config_model_post_init(mock_get): assert oauth_config.issuer == mock_response["issuer"] assert oauth_config.jwks_uri == mock_response["jwks_uri"] assert oauth_config.logout_url == mock_response["end_session_endpoint"] - assert oauth_config.refresh_url == mock_response["token_endpoint"] @mock.patch("requests.get")