mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-07-08 03:47:48 +02:00
Fix broken tests.
This commit is contained in:
@@ -119,6 +119,9 @@ async def test_chat_completion_with_tool_call_without_streaming(
|
||||
)
|
||||
trace = await trace_response.json()
|
||||
|
||||
for message in trace["messages"]:
|
||||
message.pop("annotations", None)
|
||||
|
||||
# Verify the trace messages
|
||||
expected_messages = history + [
|
||||
{
|
||||
|
||||
@@ -79,6 +79,9 @@ async def test_chat_completion(
|
||||
)
|
||||
trace = await trace_response.json()
|
||||
|
||||
for message in trace["messages"]:
|
||||
message.pop("annotations", None)
|
||||
|
||||
# Verify the trace messages
|
||||
assert trace["messages"] == [
|
||||
{
|
||||
@@ -159,6 +162,9 @@ async def test_chat_completion_with_image(
|
||||
)
|
||||
trace = await trace_response.json()
|
||||
|
||||
for message in trace["messages"]:
|
||||
message.pop("annotations", None)
|
||||
|
||||
# Verify the trace messages
|
||||
assert trace["messages"] == [
|
||||
{
|
||||
@@ -227,6 +233,9 @@ async def test_chat_completion_with_invariant_key_in_openai_key_header(
|
||||
)
|
||||
trace = await trace_response.json()
|
||||
|
||||
for message in trace["messages"]:
|
||||
message.pop("annotations", None)
|
||||
|
||||
# Verify the trace messages
|
||||
assert trace["messages"] == [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user