mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(tests): pass host to RedisCache in test_team_update_redis to avoid ValueError
RedisCache() without arguments fails at construction with "ValueError: Either 'host' or 'url' must be specified for redis." The actual Redis connection is irrelevant since async_set_cache is mocked. Unlike test_get_team_redis which uses client_no_auth (which sets REDIS_HOST via fake_env_vars), test_team_update_redis has no fixture setting that env var. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6b681aafdd
commit
bd8c1cc673
1 changed files with 1 additions and 1 deletions
|
|
@ -962,7 +962,7 @@ async def test_team_update_redis():
|
|||
litellm.proxy.proxy_server, "proxy_logging_obj"
|
||||
)
|
||||
|
||||
redis_cache = RedisCache()
|
||||
redis_cache = RedisCache(host="localhost")
|
||||
|
||||
with patch.object(
|
||||
redis_cache,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue