mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
Merge branch 'main' into tool_tests
This commit is contained in:
commit
fc642cc384
17 changed files with 769 additions and 120 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue