Skip to content

Commit 5d68744

Browse files
committed
updated tests
1 parent d07934d commit 5d68744

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integrations/cohere/test_cohere.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ def test_nonstreaming_chat(
5858

5959
if send_default_pii and include_prompts:
6060
assert (
61-
"{'role': 'system', 'content': 'some context'}"
61+
'{"role": "system", "content": "some context"}'
6262
in span["data"][SPANDATA.AI_INPUT_MESSAGES]
6363
)
6464
assert (
65-
"{'role': 'user', 'content': 'hello'}"
65+
'{"role": "user", "content": "hello"}'
6666
in span["data"][SPANDATA.AI_INPUT_MESSAGES]
6767
)
6868
assert "the model response" in span["data"][SPANDATA.AI_RESPONSES]
@@ -135,11 +135,11 @@ def test_streaming_chat(sentry_init, capture_events, send_default_pii, include_p
135135

136136
if send_default_pii and include_prompts:
137137
assert (
138-
"{'role': 'system', 'content': 'some context'}"
138+
'{"role": "system", "content": "some context"}'
139139
in span["data"][SPANDATA.AI_INPUT_MESSAGES]
140140
)
141141
assert (
142-
"{'role': 'user', 'content': 'hello'}"
142+
'{"role": "user", "content": "hello"}'
143143
in span["data"][SPANDATA.AI_INPUT_MESSAGES]
144144
)
145145
assert "the model response" in span["data"][SPANDATA.AI_RESPONSES]

0 commit comments

Comments
 (0)