diff --git a/tests/integrations/anthropic/test_anthropic.py b/tests/integrations/anthropic/test_anthropic.py index 9847df1c57..e21d3bb4b0 100644 --- a/tests/integrations/anthropic/test_anthropic.py +++ b/tests/integrations/anthropic/test_anthropic.py @@ -490,13 +490,13 @@ def test_streaming_create_message_with_input_json_delta( ), ContentBlockDeltaEvent( delta=InputJSONDelta( - partial_json="{'location':", type="input_json_delta" + partial_json='{"location": "', type="input_json_delta" ), index=0, type="content_block_delta", ), ContentBlockDeltaEvent( - delta=InputJSONDelta(partial_json=" 'S", type="input_json_delta"), + delta=InputJSONDelta(partial_json="S", type="input_json_delta"), index=0, type="content_block_delta", ), @@ -513,7 +513,7 @@ def test_streaming_create_message_with_input_json_delta( type="content_block_delta", ), ContentBlockDeltaEvent( - delta=InputJSONDelta(partial_json="A'}", type="input_json_delta"), + delta=InputJSONDelta(partial_json='A"}', type="input_json_delta"), index=0, type="content_block_delta", ), @@ -575,7 +575,7 @@ def test_streaming_create_message_with_input_json_delta( ) assert ( span["data"][SPANDATA.GEN_AI_RESPONSE_TEXT] - == "{'location': 'San Francisco, CA'}" + == '{"location": "San Francisco, CA"}' ) else: assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in span["data"] @@ -642,15 +642,13 @@ async def test_streaming_create_message_with_input_json_delta_async( ), ContentBlockDeltaEvent( delta=InputJSONDelta( - partial_json="{'location':", type="input_json_delta" + partial_json='{"location": "', type="input_json_delta" ), index=0, type="content_block_delta", ), ContentBlockDeltaEvent( - delta=InputJSONDelta( - partial_json=" 'S", type="input_json_delta" - ), + delta=InputJSONDelta(partial_json="S", type="input_json_delta"), index=0, type="content_block_delta", ), @@ -670,7 +668,7 @@ async def test_streaming_create_message_with_input_json_delta_async( ), ContentBlockDeltaEvent( delta=InputJSONDelta( - partial_json="A'}", type="input_json_delta" + partial_json='A"}', type="input_json_delta" ), index=0, type="content_block_delta", @@ -734,7 +732,7 @@ async def test_streaming_create_message_with_input_json_delta_async( ) assert ( span["data"][SPANDATA.GEN_AI_RESPONSE_TEXT] - == "{'location': 'San Francisco, CA'}" + == '{"location": "San Francisco, CA"}' ) else: