Baseline tools-call-sampling; fix removal leftovers flagged by ruff

This commit is contained in:
Jeremiah Lowin 2026-07-26 15:07:24 -04:00
commit b9fcef1889
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View file

@ -1,7 +1,6 @@
from unittest.mock import MagicMock
import pytest
from mcp_types import ModelPreferences
from fastmcp.server.context import (
Context,