Skip to content

Commit 50b1336

Browse files
fix: remove unnecessary test
1 parent f2d2789 commit 50b1336

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/server/mcpserver/auth/test_auth_integration.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -303,32 +303,6 @@ async def auth_code(
303303

304304

305305
class TestAuthEndpoints:
306-
@pytest.mark.anyio
307-
async def test_metadata_endpoint_with_client_id_metadata_document_supported(self):
308-
"""Test metadata endpoint when client_id_metadata_document_supported is enabled."""
309-
mock_provider = MockOAuthProvider()
310-
auth_routes = create_auth_routes(
311-
mock_provider,
312-
AnyHttpUrl("https://auth.example.com"),
313-
AnyHttpUrl("https://docs.example.com"),
314-
client_registration_options=ClientRegistrationOptions(
315-
enabled=True,
316-
valid_scopes=["read", "write"],
317-
client_id_metadata_document_supported=True,
318-
),
319-
revocation_options=RevocationOptions(enabled=True),
320-
)
321-
app = Starlette(routes=auth_routes)
322-
323-
async with httpx.AsyncClient(
324-
transport=httpx.ASGITransport(app=app), base_url="https://mcptest.com"
325-
) as client:
326-
response = await client.get("/.well-known/oauth-authorization-server")
327-
assert response.status_code == 200
328-
329-
metadata = response.json()
330-
assert metadata["client_id_metadata_document_supported"] is True
331-
332306
@pytest.mark.anyio
333307
async def test_metadata_endpoint(self, test_client: httpx.AsyncClient):
334308
"""Test the OAuth 2.0 metadata endpoint."""

0 commit comments

Comments
 (0)