litellm/tests/test_litellm/caching
Ishaan Jaff 59e5b7e8c6
fix(tests): use monkeypatch.setenv for Redis pool max_connections tests (#21834)
Replace patch('litellm._redis._get_redis_client_logic') with monkeypatch.setenv
in test_max_connections_url_config and test_max_connections_url_config_string_value.

The mock was unreliable in CI (REDIS_URL is set to the real Redis Cloud server),
causing the pool to silently use the real config instead of the test config.
Using monkeypatch.setenv tests the full env-var→pool chain more robustly and
matches the actual production code path.
2026-02-21 14:38:28 -08:00
..
test_azure_blob_cache.py
test_caching_handler.py
test_dual_cache.py
test_gcs_cache.py
test_in_memory_cache.py
test_qdrant_semantic_cache.py
test_redis_cache.py
test_redis_cluster_cache.py
test_redis_connection_pool.py fix(tests): use monkeypatch.setenv for Redis pool max_connections tests (#21834) 2026-02-21 14:38:28 -08:00
test_redis_semantic_cache.py
test_s3_cache.py