mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
test(proxy): declare the guard cell's patch to the test-quality gate
The lint job's test-quality budget failed with TQ008 over its ceiling by one,
naming the new guard cell. TQ008 asks a patched SDK internal to be replaced by a
faked HTTP boundary or an injected collaborator, and neither applies here: the
cell exists to observe what the proxy-admin substitution hands common_checks, so
that call is the subject rather than incidental wiring, and there is no seam to
inject on it.
Suppressed with the reason inline, which is the mechanism the gate documents and
the form the file already uses four times. The budget file is untouched.
scripts/test_quality_gate.py --base c8114ba41f now reports every TQ rule within
its ceiling.
This commit is contained in:
parent
84cc725a32
commit
a6d5f8a2d1
1 changed files with 1 additions and 1 deletions
|
|
@ -4328,7 +4328,7 @@ async def test_centralized_checks_keep_admin_role_when_the_db_row_is_not_admin()
|
|||
token = UserAPIKeyAuth(user_id="admin-user", user_role=LitellmUserRoles.PROXY_ADMIN)
|
||||
|
||||
with _proxy_admin_world(demoted_row):
|
||||
with patch(
|
||||
with patch( # test-quality-ok: what the substitution hands common_checks IS the subject; no HTTP boundary and no injection seam on that call
|
||||
"litellm.proxy.auth.user_api_key_auth.common_checks",
|
||||
new_callable=AsyncMock,
|
||||
) as mock_checks:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue