From c6d36e891230946dbe73083a55d991dd1da2cdf6 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 15 May 2025 15:38:43 -0700 Subject: [PATCH] test: fix test --- .../anthropic/chat/test_anthropic_chat_transformation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py b/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py index 82faf738a5d..d35115e5241 100644 --- a/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py +++ b/tests/litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py @@ -156,10 +156,7 @@ def test_web_search_tool_transformation(): assert anthropic_web_search_tool is not None assert anthropic_web_search_tool["user_location"] is not None assert anthropic_web_search_tool["user_location"]["type"] == "approximate" - assert ( - anthropic_web_search_tool["user_location"]["approximate"]["city"] - == "San Francisco" - ) + assert anthropic_web_search_tool["user_location"]["city"] == "San Francisco" @pytest.mark.parametrize(