MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_stream_execute_tools_single_call

Function test_stream_execute_tools_single_call

tests/tools/test_execution.py:245–256  ·  view source on GitHub ↗

Test streaming with single tool call.

()

Source from the content-addressed store, hash-verified

243
244@pytest.mark.asyncio
245async def test_stream_execute_tools_single_call():
246 """Test streaming with single tool call."""
247 manager = MockToolManager()
248 calls = [CTPToolCall(id="call_1", tool="test_tool", arguments={"x": 1})]
249
250 results = []
251 async for result in stream_execute_tools(manager, calls):
252 results.append(result)
253
254 assert len(results) == 1
255 assert results[0].tool == "test_tool"
256 assert results[0].is_success
257
258
259@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

stream_execute_toolsFunction · 0.90
MockToolManagerClass · 0.70

Tested by

no test coverage detected