@@ -136,7 +136,7 @@ async def test_http_unstructured_output(
136136
137137 # Call the greet tool and verify the result
138138 result = await transport .call_tool (None , f"{ HTTP_SERVER_NAME } .greet" , {"name" : "Alice" }, http_mcp_provider )
139- assert result == " Hello, Alice!"
139+ assert result == { "result" : " Hello, Alice!"}
140140
141141
142142@pytest .mark .asyncio
@@ -152,11 +152,9 @@ async def test_http_list_output(
152152 # Call the list_items tool and verify the result
153153 result = await transport .call_tool (None , f"{ HTTP_SERVER_NAME } .list_items" , {"count" : 3 }, http_mcp_provider )
154154
155- assert isinstance (result , list )
156- assert len (result ) == 3
157- assert result [0 ] == "item_0"
158- assert result [1 ] == "item_1"
159- assert result [2 ] == "item_2"
155+ assert isinstance (result , dict )
156+ assert "result" in result
157+ assert result == {"result" : ["item_0" , "item_1" , "item_2" ]}
160158
161159
162160@pytest .mark .asyncio
@@ -172,7 +170,7 @@ async def test_http_numeric_output(
172170 # Call the add_numbers tool and verify the result
173171 result = await transport .call_tool (None , f"{ HTTP_SERVER_NAME } .add_numbers" , {"a" : 5 , "b" : 7 }, http_mcp_provider )
174172
175- assert result == 12
173+ assert result == { "result" : 12 }
176174
177175
178176@pytest .mark .asyncio
0 commit comments