Skip to content

Commit 3122086

Browse files
committed
fix tests
1 parent 680afee commit 3122086

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ target-version = "py310"
7777

7878
[tool.ruff.lint.per-file-ignores]
7979
"__init__.py" = ["F401"]
80+
"tests/server/fastmcp/test_func_metadata.py" = ["E501"]
8081

8182
[tool.uv.workspace]
8283
members = ["examples/servers/*"]

tests/server/fastmcp/test_func_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def test_complex_function_json_schema():
300300
},
301301
"field_with_default_via_field_annotation_before_nondefault_arg": {
302302
"default": 1,
303-
"title": "Field With Default Via Field Annotation Before Arg",
303+
"title": "Field With Default Via Field Annotation Before Nondefault Arg",
304304
"type": "integer",
305305
},
306306
"unannotated": {"title": "unannotated", "type": "string"},
@@ -319,7 +319,7 @@ def test_complex_function_json_schema():
319319
"type": "string",
320320
},
321321
"my_model_a_with_default": {
322-
"allOf": [{"$ref": "#/$defs/SomeInputModelA"}],
322+
"$ref": "#/$defs/SomeInputModelA",
323323
"default": {},
324324
},
325325
"an_int_with_default": {

tests/test_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from mcp.shared.memory import (
66
create_connected_server_and_client_session as client_session,
77
)
8-
from mcp.types import TextContent
8+
from mcp.types import TextContent, TextResourceContents
99

1010

1111
@pytest.mark.anyio
@@ -59,5 +59,5 @@ async def test_desktop():
5959
result = await client.read_resource(AnyUrl("dir://desktop"))
6060
assert len(result.contents) == 1
6161
content = result.contents[0]
62-
assert isinstance(content, TextContent)
62+
assert isinstance(content, TextResourceContents)
6363
assert isinstance(content.text, str)

0 commit comments

Comments
 (0)