From 6dff830343b257e11365ec816a660b0eac83aaa5 Mon Sep 17 00:00:00 2001 From: eugene-yao-zocdoc Date: Tue, 25 Aug 2026 11:18:23 -0400 Subject: [PATCH] test(redis): explain debug logger patch --- tests/test_litellm/test_redis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/test_redis.py b/tests/test_litellm/test_redis.py index 0961357731d..70b972d3259 100644 --- a/tests/test_litellm/test_redis.py +++ b/tests/test_litellm/test_redis.py @@ -419,7 +419,9 @@ def test_redis_cache_key_does_not_inspect_provider(clear_llm_client_cache): def test_pretty_print_never_expands_credential_provider(capsys): secret = "aaaa-UNIQUE-SENTINEL-bbbb" - with patch("litellm._redis.verbose_logger.isEnabledFor", return_value=True): + with patch( # test-quality-ok: enable the debug-only printer without changing process-wide logger state + "litellm._redis.verbose_logger.isEnabledFor", return_value=True + ): _pretty_print_redis_config( redis_kwargs={ "host": "redis-host",