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

Function test_stream_execute_tools_with_timeout

tests/tools/test_execution.py:448–458  ·  view source on GitHub ↗

Test stream_execute_tools with custom timeout.

()

Source from the content-addressed store, hash-verified

446
447@pytest.mark.asyncio
448async def test_stream_execute_tools_with_timeout():
449 """Test stream_execute_tools with custom timeout."""
450 manager = MockToolManager()
451 calls = [CTPToolCall(id="call_1", tool="test_tool", arguments={})]
452
453 results = []
454 async for result in stream_execute_tools(manager, calls, timeout=60.0):
455 results.append(result)
456
457 assert len(results) == 1
458 assert results[0].is_success
459
460
461@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

stream_execute_toolsFunction · 0.90
MockToolManagerClass · 0.70

Tested by

no test coverage detected