test(proxy): give the anthropic counter patch its test-quality-ok reason

This commit is contained in:
mateo-berri 2026-09-01 13:03:21 -07:00
parent 1e189df174
commit c79776d3da

View file

@ -388,7 +388,7 @@ async def test_internal_token_counter_anthropic_provider_detection():
)
# Test with is_direct_request=False (simulating call from Anthropic endpoint)
with patch(
with patch( # test-quality-ok: the module-global anthropic counter is the only seam; the test checks provider detection, not the counter
"litellm.llms.anthropic.count_tokens.token_counter.anthropic_count_tokens_handler",
mock_handler,
):