π The fast, Pythonic way to build MCP servers and clients.
Remove test warnings (#2331)
Jeremiah Lowindab125e0690b
diff --git a/pyproject.toml b/pyproject.tomlindex 991203674..fec290757 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -103,6 +103,11 @@ fallback-version = "0.0.0"[tool.pytest.ini_options]asyncio_mode = "auto"# filterwarnings = ["error::DeprecationWarning"]+filterwarnings = [+ # Suppress OAuth in-memory token storage warnings in tests+ # Tests intentionally use ephemeral storage; this warning is for end users+ "ignore:Using in-memory token storage:UserWarning",+]timeout = 5env = ["FASTMCP_TEST_MODE=1",diff --git a/tests/client/test_sse.py b/tests/client/test_sse.pyindex 914b505a2..7110d5cfd 100644--- a/tests/client/test_sse.py+++ b/tests/client/test_sse.py@@ -94,10 +94,13 @@ async def nested_sse_server():from starlette.applications import Starlettefrom starlette.routing import Mount+ from fastmcp.server.http import create_sse_appfrom fastmcp.utilities.http import find_available_portserver = create_test_server()- sse_app = server.sse_app(path="/mcp/sse/", message_path="/mcp/messages")+ sse_app = create_sse_app(+ server=server, message_path="/mcp/messages", sse_path="/mcp/sse/"+ )# Nest the app under multiple mounts to test URL resolutioninner = Starlette(routes=[Mount("/nest-inner", app=sse_app)])