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

Function test_finish_tool_calls_sync

tests/chat/test_tool_processor.py:2247–2259  ·  view source on GitHub ↗

Synchronous finish_tool_calls is called correctly.

()

Source from the content-addressed store, hash-verified

2245
2246@pytest.mark.asyncio
2247async def test_finish_tool_calls_sync():
2248 """Synchronous finish_tool_calls is called correctly."""
2249 context = DummyContext(tool_manager=DummyToolManager())
2250 ui = DummyUIManager()
2251 finish_called = []
2252
2253 def sync_finish():
2254 finish_called.append(True)
2255
2256 ui.finish_tool_calls = sync_finish
2257 proc = ToolProcessor(context, ui)
2258 await proc._finish_tool_calls()
2259 assert finish_called
2260
2261
2262@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