@@ -98,7 +98,7 @@ async def test_unstructured_string_output(transport: McpCommunicationProtocol, m
9898 await transport .register_manual (None , mcp_manual )
9999
100100 result = await transport .call_tool (None , f"{ SERVER_NAME } .greet" , {"name" : "Alice" }, mcp_manual )
101- assert result == { "result" : " Hello, Alice!"}
101+ assert result == " Hello, Alice!"
102102
103103
104104@pytest .mark .asyncio
@@ -108,9 +108,9 @@ async def test_list_output(transport: McpCommunicationProtocol, mcp_manual: McpC
108108
109109 result = await transport .call_tool (None , f"{ SERVER_NAME } .list_items" , {"count" : 3 }, mcp_manual )
110110
111- assert isinstance (result , dict )
112- assert " result" in result
113- assert result == { "result" : ["item_0" , "item_1" , "item_2" ]}
111+ assert isinstance (result , list )
112+ assert len ( result ) == 3
113+ assert result == ["item_0" , "item_1" , "item_2" ]
114114
115115
116116@pytest .mark .asyncio
@@ -120,7 +120,7 @@ async def test_numeric_output(transport: McpCommunicationProtocol, mcp_manual: M
120120
121121 result = await transport .call_tool (None , f"{ SERVER_NAME } .add_numbers" , {"a" : 5 , "b" : 7 }, mcp_manual )
122122
123- assert result == { "result" : 12 }
123+ assert result == 12
124124
125125
126126@pytest .mark .asyncio
0 commit comments