mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Baseline tools-call-sampling; fix removal leftovers flagged by ruff
This commit is contained in:
parent
1593257f2a
commit
b9fcef1889
3 changed files with 5 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ import logging
|
|||
|
||||
import mcp_types
|
||||
import pytest
|
||||
from mcp_types import TextContent, ToolUseContent
|
||||
from mcp_types import TextContent
|
||||
from pydantic import AnyUrl
|
||||
|
||||
from fastmcp.client import Client
|
||||
|
|
@ -414,4 +414,3 @@ class TestLogLevel:
|
|||
and record.levelname == "ERROR"
|
||||
for record in caplog.records
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,3 +4,7 @@ server:
|
|||
- resources-subscribe
|
||||
- resources-unsubscribe
|
||||
- dns-rebinding-protection
|
||||
# Server-initiated sampling was removed from the server API (SEP-2577), so
|
||||
# the fixture has no `test_sampling` tool for this handshake-era scenario to
|
||||
# drive. Modern sampling is exercised by input-required-result-basic-sampling.
|
||||
- tools-call-sampling
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
from mcp_types import ModelPreferences
|
||||
|
||||
from fastmcp.server.context import (
|
||||
Context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue