Test streaming with single tool call.
()
| 243 | |
| 244 | @pytest.mark.asyncio |
| 245 | async def test_stream_execute_tools_single_call(): |
| 246 | """Test streaming with single tool call.""" |
| 247 | manager = MockToolManager() |
| 248 | calls = [CTPToolCall(id="call_1", tool="test_tool", arguments={"x": 1})] |
| 249 | |
| 250 | results = [] |
| 251 | async for result in stream_execute_tools(manager, calls): |
| 252 | results.append(result) |
| 253 | |
| 254 | assert len(results) == 1 |
| 255 | assert results[0].tool == "test_tool" |
| 256 | assert results[0].is_success |
| 257 | |
| 258 | |
| 259 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected