The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: correct mock setup for delete_polling test
Xianzong Xie52d784b76383
diff --git a/tests/proxy_unit_tests/test_response_polling_handler.py b/tests/proxy_unit_tests/test_response_polling_handler.pyindex dc75d1dadd3..f72df3a11b4 100644--- a/tests/proxy_unit_tests/test_response_polling_handler.py+++ b/tests/proxy_unit_tests/test_response_polling_handler.py@@ -516,7 +516,8 @@ class TestResponsePollingHandler:mock_redis = AsyncMock()mock_async_client = AsyncMock()mock_redis.redis_async_client = True # hasattr check- mock_redis.init_async_client.return_value = mock_async_client+ # init_async_client is a sync method that returns an async client+ mock_redis.init_async_client = Mock(return_value=mock_async_client)handler = ResponsePollingHandler(redis_cache=mock_redis)