Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
f9d711a
1
Parent(s): 413b954
Update test_deprecated.py
Browse files
tests/deprecated/test_deprecated.py
CHANGED
|
@@ -9,17 +9,6 @@ from starlette.applications import Starlette
|
|
| 9 |
from fastmcp import Client, FastMCP
|
| 10 |
|
| 11 |
|
| 12 |
-
def test_fastmcp_kwargs_settings_deprecation_warning():
|
| 13 |
-
"""Test that passing settings as kwargs to FastMCP raises a deprecation warning."""
|
| 14 |
-
with pytest.warns(
|
| 15 |
-
DeprecationWarning,
|
| 16 |
-
match="Passing runtime and transport-specific settings as kwargs to the FastMCP constructor is deprecated",
|
| 17 |
-
):
|
| 18 |
-
server = FastMCP("TestServer", host="127.0.0.2", port=8001)
|
| 19 |
-
assert server.settings.host == "127.0.0.2"
|
| 20 |
-
assert server.settings.port == 8001
|
| 21 |
-
|
| 22 |
-
|
| 23 |
def test_sse_app_deprecation_warning():
|
| 24 |
"""Test that sse_app raises a deprecation warning."""
|
| 25 |
server = FastMCP("TestServer")
|
|
|
|
| 9 |
from fastmcp import Client, FastMCP
|
| 10 |
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
def test_sse_app_deprecation_warning():
|
| 13 |
"""Test that sse_app raises a deprecation warning."""
|
| 14 |
server = FastMCP("TestServer")
|