From bd8c1cc673df29f24cdef16735fd0adf60b67afa Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Fri, 20 Feb 2026 01:00:58 -0300 Subject: [PATCH] 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 --- tests/proxy_unit_tests/test_proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/proxy_unit_tests/test_proxy_server.py b/tests/proxy_unit_tests/test_proxy_server.py index d864a0d986..f197e63926 100644 --- a/tests/proxy_unit_tests/test_proxy_server.py +++ b/tests/proxy_unit_tests/test_proxy_server.py @@ -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,