Skip to content

Commit 463759f

Browse files
anthropic test
1 parent a913959 commit 463759f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integrations/anthropic/test_anthropic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def test_nonstreaming_create_message(
170170
span["attributes"][SPANDATA.GEN_AI_RESPONSE_TEXT] == "Hi, I'm Claude."
171171
)
172172
else:
173-
assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in spans[1]["attributes"]
174-
assert SPANDATA.GEN_AI_RESPONSE_TEXT not in spans[1]["attributes"]
173+
assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in span
174+
assert SPANDATA.GEN_AI_RESPONSE_TEXT not in span
175175

176176
assert span["attributes"][SPANDATA.GEN_AI_USAGE_INPUT_TOKENS] == 10
177177
assert span["attributes"][SPANDATA.GEN_AI_USAGE_OUTPUT_TOKENS] == 20

0 commit comments

Comments
 (0)