Skip to content

Commit 8f37010

Browse files
committed
fix tests
1 parent d21250e commit 8f37010

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/realtime/test_session.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ async def test_function_call_event_triggers_tool_handling(self, mock_model, mock
583583
await session.on_event(function_call_event)
584584

585585
# Should have called the tool handler
586-
handle_tool_call_mock.assert_called_once_with(function_call_event)
586+
handle_tool_call_mock.assert_called_once_with(
587+
function_call_event, agent_snapshot=mock_agent
588+
)
587589

588590
# Should still have raw event
589591
assert session._event_queue.qsize() == 1
@@ -611,7 +613,9 @@ async def test_function_call_event_runs_async_by_default(self, mock_model, mock_
611613
# Let the background task run
612614
await asyncio.sleep(0)
613615

614-
handle_tool_call_mock.assert_awaited_once_with(function_call_event)
616+
handle_tool_call_mock.assert_awaited_once_with(
617+
function_call_event, agent_snapshot=mock_agent
618+
)
615619

616620
# Raw event still enqueued
617621
assert session._event_queue.qsize() == 1

0 commit comments

Comments
 (0)