chore: Perform codebase cleanup and refactor App state management
This commit is contained in:
@@ -55,15 +55,6 @@ def test_oidc_fetch_jwks(oidc_config, mock_metadata):
|
||||
client.fetch_jwks()
|
||||
assert mock_get.call_count == 1
|
||||
|
||||
def test_oidc_get_login_url_legacy(oidc_config, mock_metadata):
|
||||
client = OIDCClient(**oidc_config)
|
||||
client.metadata = mock_metadata
|
||||
|
||||
with patch.object(client.oauth_session, "create_authorization_url") as mock_create:
|
||||
mock_create.return_value = ("https://url", "state")
|
||||
url = client.get_login_url()
|
||||
assert url == "https://url"
|
||||
|
||||
def test_oidc_get_user_info(oidc_config, mock_metadata):
|
||||
client = OIDCClient(**oidc_config)
|
||||
client.metadata = mock_metadata
|
||||
|
||||
Reference in New Issue
Block a user