From f73ec1875cc90bd4dfef060a26ac329d864163c7 Mon Sep 17 00:00:00 2001 From: Sameer <121498481+sam7eer@users.noreply.github.com> Date: Sun, 27 Sep 2026 17:30:04 +0530 Subject: [PATCH] test(anthropic): move the TQ002 suppression onto the reported def line --- ...st_anthropic_experimental_pass_through_messages_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/llms/anthropic/pass_through/messages/test_anthropic_experimental_pass_through_messages_handler.py b/tests/unit/llms/anthropic/pass_through/messages/test_anthropic_experimental_pass_through_messages_handler.py index 92518f5378d..101ca6e896d 100644 --- a/tests/unit/llms/anthropic/pass_through/messages/test_anthropic_experimental_pass_through_messages_handler.py +++ b/tests/unit/llms/anthropic/pass_through/messages/test_anthropic_experimental_pass_through_messages_handler.py @@ -160,13 +160,13 @@ def test_should_route_to_responses_api_considers_api_base_for_openai(api_base, e assert _should_route_to_responses_api("openai", "openai/model", "model", api_base) is expected -def test_openai_custom_api_base_forwards_messages_to_chat_completions(): +def test_openai_custom_api_base_forwards_messages_to_chat_completions(): # test-quality-ok: routing guard, asserts /v1/messages reaches litellm.completion with api_base forwarded; the routing decision itself is behaviorally covered by test_should_route_to_responses_api_considers_api_base_for_openai """Regression test for #40780: the full handler forwards a custom-api_base openai/ request to litellm.completion.""" from litellm.llms.anthropic.pass_through.messages.handler import ( anthropic_messages_handler, ) - with patch("litellm.completion") as mock_completion: # test-quality-ok: routes via real handler; no injection seam + with patch("litellm.completion") as mock_completion: try: anthropic_messages_handler( max_tokens=100,