mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Use a single fastmcp import style in protocol-era tests
This commit is contained in:
parent
77131edc00
commit
13b9ab80ab
1 changed files with 2 additions and 3 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue