Update tests/test_litellm/proxy/auth/test_user_api_key_auth.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
jquinter 2026-02-18 11:21:53 -03:00 committed by GitHub
parent 30d4f344ae
commit 0d11720586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -320,10 +320,10 @@ async def test_proxy_admin_expired_key_from_cache():
attr: getattr(_proxy_server_mod, attr, None)
for attr in _attrs_to_set
}
for attr, val in _attrs_to_set.items():
setattr(_proxy_server_mod, attr, val)
try:
for attr, val in _attrs_to_set.items():
setattr(_proxy_server_mod, attr, val)
# Create a mock request
request = Request(scope={"type": "http"})