Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update test_deprecated.py

Jeremiah Lowin452686d85815
diff --git a/tests/deprecated/test_deprecated.py b/tests/deprecated/test_deprecated.py
index f9facd658..e3de65bc2 100644
--- a/tests/deprecated/test_deprecated.py
+++ b/tests/deprecated/test_deprecated.py
@@ -9,17 +9,6 @@ from starlette.applications import Starlette
from fastmcp import Client, FastMCP
-def test_fastmcp_kwargs_settings_deprecation_warning():
- """Test that passing settings as kwargs to FastMCP raises a deprecation warning."""
- with pytest.warns(
- DeprecationWarning,
- match="Passing runtime and transport-specific settings as kwargs to the FastMCP constructor is deprecated",
- ):
- server = FastMCP("TestServer", host="127.0.0.2", port=8001)
- assert server.settings.host == "127.0.0.2"
- assert server.settings.port == 8001
-
-
def test_sse_app_deprecation_warning():
"""Test that sse_app raises a deprecation warning."""
server = FastMCP("TestServer")