From 27bfde95a4c11874f3993cb3954e2a6077df2169 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Tue, 4 Feb 2025 20:16:17 +0000 Subject: [PATCH] fix: fix tests --- tests/server/fastmcp/test_parameter_descriptions.py | 2 +- tests/shared/test_sse.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/server/fastmcp/test_parameter_descriptions.py b/tests/server/fastmcp/test_parameter_descriptions.py index 0a45e4f..29470ed 100644 --- a/tests/server/fastmcp/test_parameter_descriptions.py +++ b/tests/server/fastmcp/test_parameter_descriptions.py @@ -6,7 +6,7 @@ from mcp.server.fastmcp import FastMCP -@pytest.mark.asyncio +@pytest.mark.anyio async def test_parameter_descriptions(): mcp = FastMCP("Test Server") diff --git a/tests/shared/test_sse.py b/tests/shared/test_sse.py index a229cb1..87129ba 100644 --- a/tests/shared/test_sse.py +++ b/tests/shared/test_sse.py @@ -43,7 +43,7 @@ def server_url(server_port: int) -> str: # Test server implementation -class TestServer(Server): +class ServerTest(Server): def __init__(self): super().__init__(SERVER_NAME) @@ -81,7 +81,7 @@ async def handle_call_tool(name: str, args: dict) -> list[TextContent]: def make_server_app() -> Starlette: """Create test Starlette app with SSE transport""" sse = SseServerTransport("/messages/") - server = TestServer() + server = ServerTest() async def handle_sse(request: Request) -> None: async with sse.connect_sse(