Apply suggestion from @greptile-apps[bot]
Some checks failed
Unit Tests: Proxy DB Operations / assert-shard-coverage (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled
Unit Tests: Proxy DB Operations / auth-checks (push) Has been cancelled
Unit Tests: Proxy DB Operations / budgets (push) Has been cancelled
Unit Tests: Proxy DB Operations / custom-logging (push) Has been cancelled
Unit Tests: Proxy DB Operations / db-and-spend (push) Has been cancelled
Unit Tests: Proxy DB Operations / endpoints-and-responses (push) Has been cancelled
Unit Tests: Proxy DB Operations / guardrails-hooks (push) Has been cancelled
Unit Tests: Proxy DB Operations / jwt-and-keys (push) Has been cancelled
Unit Tests: Proxy DB Operations / key-generation (push) Has been cancelled
Unit Tests: Proxy DB Operations / logging-misc (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-runtime (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-server-core (push) Has been cancelled
Unit Tests: Proxy DB Operations / schema-migration (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-utils (push) Has been cancelled

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
yuneng-jiang 2026-05-26 14:07:51 -07:00 • committed by GitHub
parent 7ee3d373ce
commit 95038d54c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1163,7 +1163,7 @@ def test_get_direct_access_models_sentinel_returns_all_non_team_models():
def test_get_direct_access_models_empty_list_returns_all_non_team_models():
"""models == [] returns all non-team model IDs (Pfizer's case — the bug PR #22875 missed)."""
"""models == [] returns all non-team model IDs (empty-list shape — the bug PR #22875 missed)."""
from litellm.proxy.proxy_server import get_direct_access_models
mock_user = MagicMock()