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

Function test_stream_execute_tool

tests/chat/test_chat_context.py:386–392  ·  view source on GitHub ↗

Test stream_execute_tool delegation.

(chat_context)

Source from the content-addressed store, hash-verified

384
385@pytest.mark.asyncio
386async def test_stream_execute_tool(chat_context):
387 """Test stream_execute_tool delegation."""
388 await chat_context.initialize()
389 results = []
390 async for result in chat_context.stream_execute_tool("tool1", {"arg": "value"}):
391 results.append(result)
392 assert len(results) >= 1
393
394
395@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

initializeMethod · 0.45
stream_execute_toolMethod · 0.45

Tested by

no test coverage detected