fix: fix tests

This commit is contained in:
David Soria Parra 2025-02-04 20:16:17 +00:00
commit 27bfde95a4
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ from pydantic import Field
from mcp.server.fastmcp import FastMCP
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_parameter_descriptions():
mcp = FastMCP("Test Server")

View file

@ -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 @@ class TestServer(Server):
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(