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

Function test_finish_tool_calls_async

tests/chat/test_tool_processor.py:2231–2243  ·  view source on GitHub ↗

Async finish_tool_calls is awaited correctly.

()

Source from the content-addressed store, hash-verified

2229
2230@pytest.mark.asyncio
2231async def test_finish_tool_calls_async():
2232 """Async finish_tool_calls is awaited correctly."""
2233 context = DummyContext(tool_manager=DummyToolManager())
2234 ui = DummyUIManager()
2235 finish_called = []
2236
2237 async def async_finish():
2238 finish_called.append(True)
2239
2240 ui.finish_tool_calls = async_finish
2241 proc = ToolProcessor(context, ui)
2242 await proc._finish_tool_calls()
2243 assert finish_called
2244
2245
2246@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 5

_finish_tool_callsMethod · 0.95
ToolProcessorClass · 0.90
DummyContextClass · 0.70
DummyToolManagerClass · 0.70
DummyUIManagerClass · 0.70

Tested by

no test coverage detected