Skip to content

Commit d9c751f

Browse files
committed
linting
1 parent 5212ce0 commit d9c751f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/mcp/client/auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ async def _discover_oauth_metadata(server_url: str) -> OAuthMetadata | None:
8989
return None
9090
response.raise_for_status()
9191
metadata_json = response.json()
92-
logger.debug(f"OAuth metadata discovered (no MCP header): {metadata_json}")
92+
logger.debug(
93+
f"OAuth metadata discovered (no MCP header): {metadata_json}"
94+
)
9395
return OAuthMetadata.model_validate(metadata_json)
9496
except Exception:
9597
logger.exception("Failed to discover OAuth metadata")

tests/client/test_auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ async def client_credentials_provider(client_credentials_metadata, mock_storage)
139139
storage=mock_storage,
140140
)
141141

142+
142143
class TestOAuthClientProvider:
143144
"""Test OAuth client provider functionality."""
144145

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -999,12 +999,9 @@ async def test_client_registration_invalid_grant_type(
999999
error_data = response.json()
10001000
assert "error" in error_data
10011001
assert error_data["error"] == "invalid_client_metadata"
1002-
assert (
1003-
error_data["error_description"]
1004-
== (
1005-
"grant_types must be authorization_code and "
1006-
"refresh_token or client_credentials"
1007-
)
1002+
assert error_data["error_description"] == (
1003+
"grant_types must be authorization_code and "
1004+
"refresh_token or client_credentials"
10081005
)
10091006

10101007
@pytest.mark.anyio

0 commit comments

Comments
 (0)