From a5648c66e12a894cf30bd13666cfebd35b5837ca Mon Sep 17 00:00:00 2001 From: Delweng Date: Sun, 18 Oct 2026 13:54:44 +0800 Subject: [PATCH] test(proxy): drop the array fixture that no longer breaks the local estimate The framed-estimate test asserts that when the provider count fails and the local estimate also cannot read the request, the proxy answers with the provider's error. Its array_schema_without_items fixture only provoked that second failure because an untyped array raised KeyError, which the previous commit stopped doing, so the request now counts successfully and the assert that the error surfaces no longer applies. The boolean_subschema_tool fixture covers the same contract and still fails the local estimate, so the coverage is unchanged. Signed-off-by: Delweng --- tests/unit/proxy/test_proxy_token_counter.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/unit/proxy/test_proxy_token_counter.py b/tests/unit/proxy/test_proxy_token_counter.py index fa0c9eda02d..337ec95f5c3 100644 --- a/tests/unit/proxy/test_proxy_token_counter.py +++ b/tests/unit/proxy/test_proxy_token_counter.py @@ -1944,15 +1944,6 @@ async def test_framing_keeps_the_400_for_blocks_the_provider_counter_cannot_conv }, id="boolean_subschema_tool", ), - pytest.param( - { - "messages": [{"role": "user", "content": "What is new?"}], - "tools": [ - {"name": "search", "input_schema": {"type": "object", "properties": {"tags": {"type": "array"}}}} - ], - }, - id="array_schema_without_items", - ), pytest.param( {"messages": [], "contents": [{"role": "user", "parts": [{"text": "What is new?"}]}]}, id="google_contents",