mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
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.
This commit is contained in:
parent
9a853da6a5
commit
2fb24c1f24
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue