Skip to content

Commit 69238ad

Browse files
committed
fix pre check commit
1 parent 154b754 commit 69238ad

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/server/auth/test_protected_resource.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
import httpx
66
import pytest
77
from inline_snapshot import snapshot
8-
from mcp.server.auth.routes import create_protected_resource_routes
9-
from mcp.shared.auth import ProtectedResourceMetadata
10-
from pydantic import AnyHttpUrl, Field
8+
from pydantic import AnyHttpUrl
119
from starlette.applications import Starlette
1210

11+
from mcp.server.auth.routes import create_protected_resource_routes
12+
13+
1314
@pytest.fixture
1415
def protected_resource_app():
1516
"""Fixture to create protected resource routes for testing."""
@@ -54,4 +55,4 @@ async def test_metadata_endpoint(self, protected_resource_test_client: httpx.Asy
5455
"resource_documentation": "https://docs.example.com/resource",
5556
"bearer_methods_supported": ["header"],
5657
}
57-
)
58+
)

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import httpx
1313
import pytest
14-
from inline_snapshot import snapshot
1514
from pydantic import AnyHttpUrl
1615
from starlette.applications import Starlette
1716

@@ -1197,4 +1196,3 @@ async def test_authorize_invalid_scope(self, test_client: httpx.AsyncClient, reg
11971196
# State should be preserved
11981197
assert "state" in query_params
11991198
assert query_params["state"][0] == "test_state"
1200-

0 commit comments

Comments
 (0)