From 14c69e42e3fc5a1accd5dcb499044e2ab7571d81 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 3 Jul 2025 15:41:29 -0700 Subject: [PATCH] test: fix test --- tests/llm_translation/test_anthropic_completion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/llm_translation/test_anthropic_completion.py b/tests/llm_translation/test_anthropic_completion.py index 74d832a9d49..11cf2278625 100644 --- a/tests/llm_translation/test_anthropic_completion.py +++ b/tests/llm_translation/test_anthropic_completion.py @@ -1298,6 +1298,7 @@ def test_anthropic_mcp_server_tool_use(spec: str): try: response = litellm.completion(**params) + assert response is not None except litellm.InternalServerError as e: print(e) except Exception as e: @@ -1306,8 +1307,6 @@ def test_anthropic_mcp_server_tool_use(spec: str): else: raise e - assert response is not None - @pytest.mark.parametrize( "model", ["openai/gpt-4.1", "anthropic/claude-sonnet-4-20250514"]