Async finish_tool_calls is awaited correctly.
()
| 2229 | |
| 2230 | @pytest.mark.asyncio |
| 2231 | async 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 |
nothing calls this directly
no test coverage detected