diff --git a/tests/unit/server/api/test_subscriptions.py b/tests/unit/server/api/test_subscriptions.py index a17feebf99..9d64f3a972 100644 --- a/tests/unit/server/api/test_subscriptions.py +++ b/tests/unit/server/api/test_subscriptions.py @@ -529,7 +529,7 @@ async def test_openai_tool_call_response_emits_expected_payloads_and_records_exp assert "content" not in output_message assert (tool_calls := output_message["tool_calls"]) assert len(tool_calls) == 1 - assert (tool_call := tool_calls.popitem()[-1]["tool_call"]) + assert (tool_call := tool_calls[0]["tool_call"]) assert (function := tool_call["function"]) assert function["name"] == "get_current_weather" assert json.loads(function["arguments"]) == {"location": "San Francisco"}