File tree Expand file tree Collapse file tree
tests/integrations/fastmcp Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments