Skip to content

Commit

Permalink
fix python test
Browse files Browse the repository at this point in the history
  • Loading branch information
Parker-Stafford committed Oct 26, 2024
1 parent 07f33e8 commit 9476b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/server/api/test_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 9476b02

Please sign in to comment.