From 2fb24c1f24d22d81e9199b4bc171a9ade7909784 Mon Sep 17 00:00:00 2001 From: Deepanshu Date: Fri, 21 Aug 2026 09:53:48 -0400 Subject: [PATCH] test(streaming): suppress TQ002 on the append-laziness spy test A test-quality gate (TQ002: don't assert only that a mock was called) landed upstream since this branch's last rebase and now flags test_append_never_calls_raw_decode. The test verifies append() defers all decoding to pop_next_value, which has no caller-observable proxy other than spying on the stdlib call it must avoid making. --- .../litellm_core_utils/test_json_fragment_accumulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/litellm_core_utils/test_json_fragment_accumulator.py b/tests/test_litellm/litellm_core_utils/test_json_fragment_accumulator.py index cfa111697ae..68aeda41750 100644 --- a/tests/test_litellm/litellm_core_utils/test_json_fragment_accumulator.py +++ b/tests/test_litellm/litellm_core_utils/test_json_fragment_accumulator.py @@ -121,7 +121,7 @@ def test_set_and_snapshot_roundtrip(): assert not accumulator -def test_append_never_calls_raw_decode(): +def test_append_never_calls_raw_decode(): # test-quality-ok: TQ002 - laziness contract has no caller-observable proxy other than spying on the stdlib call it must defer """Appending must be O(1) bookkeeping only; the O(n) join+decode is deferred entirely to pop_next_value.""" accumulator = JSONFragmentAccumulator()