Skip to content

Commit 2b6dff2

Browse files
version gating attempt
1 parent 2f98f7a commit 2b6dff2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integrations/fastmcp/test_fastmcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ async def multiply_numbers(x: int, y: int) -> dict:
397397
"result": 42,
398398
"operation": "multiplication",
399399
}
400-
elif isinstance(mcp, StandaloneFastMCP) and FASTMCP_VERSION.startswith("0"):
400+
elif isinstance(mcp, StandaloneFastMCP):
401401
assert result.json()["result"]["content"][0]["text"] == json.dumps(
402402
{"result": 42, "operation": "multiplication"},
403403
)
@@ -1005,7 +1005,7 @@ def http_tool(data: str) -> dict:
10051005

10061006
if isinstance(mcp, StandaloneFastMCP) and FASTMCP_VERSION.startswith("2"):
10071007
assert result.json()["result"]["structuredContent"] == {"processed": "TEST"}
1008-
elif isinstance(mcp, StandaloneFastMCP) and FASTMCP_VERSION.startswith("0"):
1008+
elif isinstance(mcp, StandaloneFastMCP):
10091009
assert result.json()["result"]["content"][0]["text"] == json.dumps(
10101010
{"processed": "TEST"},
10111011
)

0 commit comments

Comments
 (0)