Skip to content

Commit 478ce05

Browse files
committed
tests
1 parent 926c5f8 commit 478ce05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/server/fastmcp/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ async def test_basic_tools(server_transport: str, server_url: str) -> None:
239239
assert result.serverInfo.name == "Tool Example"
240240
assert result.capabilities.tools is not None
241241

242-
# Test add tool
243-
tool_result = await session.call_tool("add", {"a": 5, "b": 3})
242+
# Test sum tool
243+
tool_result = await session.call_tool("sum", {"a": 5, "b": 3})
244244
assert len(tool_result.content) == 1
245245
assert isinstance(tool_result.content[0], TextContent)
246246
assert tool_result.content[0].text == "8"

tests/test_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ async def test_desktop(monkeypatch):
5656
monkeypatch.setattr(Path, "home", lambda: Path("/fake/home"))
5757

5858
async with client_session(mcp._mcp_server) as client:
59-
# Test the add function
60-
result = await client.call_tool("add", {"a": 1, "b": 2})
59+
# Test the sum function
60+
result = await client.call_tool("sum", {"a": 1, "b": 2})
6161
assert len(result.content) == 1
6262
content = result.content[0]
6363
assert isinstance(content, TextContent)

0 commit comments

Comments
 (0)