π The fast, Pythonic way to build MCP servers and clients.
Use a single fastmcp import style in protocol-era tests
Jeremiah Lowin13b9ab80abfa
diff --git a/tests/server/test_protocol_eras.py b/tests/server/test_protocol_eras.pyindex 73863bd84..ca9a8ac41 100644--- a/tests/server/test_protocol_eras.py+++ b/tests/server/test_protocol_eras.py@@ -34,9 +34,8 @@ from mcp_types.version import ()from pydantic import FileUrl-import fastmcpfrom fastmcp import Client as FastMCPClient-from fastmcp import Context, FastMCP+from fastmcp import Context, FastMCP, settingsfrom fastmcp.server.elicitation import AcceptedElicitationfrom fastmcp.server.middleware import Middleware@@ -510,7 +509,7 @@ async def test_sampling_deprecation_warning_suppressible_via_settings(from fastmcp.exceptions import FastMCPDeprecationWarning- monkeypatch.setattr(fastmcp.settings, "deprecation_warnings", False)+ monkeypatch.setattr(settings, "deprecation_warnings", False)mcp = FastMCP("no-warn")