From 91e09ef0923b600e3af253909308a95443983112 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sun, 30 Aug 2026 19:22:47 -0700 Subject: [PATCH] test(router): document credential lookup seam --- tests/test_litellm/test_router.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/test_router.py b/tests/test_litellm/test_router.py index b0878b8a21e..92fac0f6eb1 100644 --- a/tests/test_litellm/test_router.py +++ b/tests/test_litellm/test_router.py @@ -4552,7 +4552,9 @@ def test_get_deployment_credentials_with_provider_fails_closed_for_missing_named ] ) - with patch.object(litellm, "credential_list", []): + with patch.object( # test-quality-ok: CredentialAccessor reads the process-global credential list + litellm, "credential_list", [] + ): credentials = router.get_deployment_credentials_with_provider(model_id="embedding-model") assert credentials is None