From 13b9ab80abfa4cbd6215386c6ec964d2957f280e Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:06:22 -0400 Subject: [PATCH] Use a single fastmcp import style in protocol-era tests --- tests/server/test_protocol_eras.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/server/test_protocol_eras.py b/tests/server/test_protocol_eras.py index 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 fastmcp from fastmcp import Client as FastMCPClient -from fastmcp import Context, FastMCP +from fastmcp import Context, FastMCP, settings from fastmcp.server.elicitation import AcceptedElicitation from 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")