mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 00:24:03 +00:00
test(test_max_tpm_rpm_limiter.py): fix test to use hashed api key in cache check
This commit is contained in:
@@ -87,6 +87,7 @@ async def test_pre_call_hook_team_rpm_limits(
|
||||
"team_id": _team_id,
|
||||
}
|
||||
user_api_key_dict = UserAPIKeyAuth(**_user_api_key_dict) # type: ignore
|
||||
_api_key = hash_token(_api_key)
|
||||
local_cache = DualCache()
|
||||
local_cache.set_cache(key=_api_key, value=_user_api_key_dict)
|
||||
internal_cache = DualCache(redis_cache=_redis_usage_cache)
|
||||
|
||||
Reference in New Issue
Block a user