From 79b24c70c9993418642cbe02a064fdfa80cdd7a3 Mon Sep 17 00:00:00 2001 From: Priyansh Nandwana Date: Sat, 29 Aug 2026 11:02:27 +0530 Subject: [PATCH] test: drop a laziness assertion the existing suite already makes test_provider_lookup_skipped_for_models_below_gpt_5_6 already pins that _resolve_provider is not called for an unflagged model, and it covers the new flag lookup unchanged. The duplicate patched a litellm internal for no added coverage, which the test-quality gate counts against TQ008. --- .../integrations/test_anthropic_cache_control_hook.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/test_litellm/integrations/test_anthropic_cache_control_hook.py b/tests/test_litellm/integrations/test_anthropic_cache_control_hook.py index 41cb371f0b9..9146f988c47 100644 --- a/tests/test_litellm/integrations/test_anthropic_cache_control_hook.py +++ b/tests/test_litellm/integrations/test_anthropic_cache_control_hook.py @@ -3117,12 +3117,6 @@ class TestHostedOpenAIDialectFlag: assert AnthropicCacheControlHook._targets_openai_prompt_cache_breakpoint("gpt-5.6", "azure") is False assert AnthropicCacheControlHook._targets_openai_prompt_cache_breakpoint("azure/gpt-5.6", None) is False - def test_provider_is_not_resolved_when_no_flag_is_present(self): - """The cheap model-map lookup must short-circuit before the provider lookup.""" - with patch.object(AnthropicCacheControlHook, "_resolve_provider") as resolve: - assert AnthropicCacheControlHook._targets_openai_prompt_cache_breakpoint("gpt-4.1", None) is False - resolve.assert_not_called() - class TestRecordGatewayInjection: """The injection marker spend accounting gates prompt-caching savings on."""