Skip to content

Commit

Permalink
fix anthropic pt logging test
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Nov 26, 2024
1 parent 904ece6 commit f12141b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/pass_through_tests/test_anthropic_passthrough.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ async def test_anthropic_basic_completion_with_headers():
), "Start time should be before end time"

# Metadata assertions
assert log_entry["cache_hit"] == "False", "Cache should be off"
assert (
str(log_entry["cache_hit"]).lower() != "true"
), "Cache should be off"
assert log_entry["request_tags"] == [
"test-tag-1",
"test-tag-2",
Expand Down Expand Up @@ -251,7 +253,9 @@ async def test_anthropic_streaming_with_headers():
), "Start time should be before end time"

# Metadata assertions
assert log_entry["cache_hit"] == "False", "Cache should be off"
assert (
str(log_entry["cache_hit"]).lower() != "true"
), "Cache should be off"
assert log_entry["request_tags"] == [
"test-tag-stream-1",
"test-tag-stream-2",
Expand Down

0 comments on commit f12141b

Please sign in to comment.