Merge branch 'main' into tool_tests

This commit is contained in:
William Easton 2025-06-02 17:58:31 -05:00 committed by GitHub
commit fc642cc384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 769 additions and 120 deletions

View file

@ -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")