Synchronous finish_tool_calls is called correctly.
()
| 2245 | |
| 2246 | @pytest.mark.asyncio |
| 2247 | async 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 |
nothing calls this directly
no test coverage detected