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
test: suppress TQ008 on proxy_server global patches, matching file idiom
Yucheng Zhu686e8ddae7aa
diff --git a/tests/test_litellm/proxy/hooks/test_proxy_track_cost_callback.py b/tests/test_litellm/proxy/hooks/test_proxy_track_cost_callback.pyindex 5eb59acf4f5..2d5857f95e5 100644--- a/tests/test_litellm/proxy/hooks/test_proxy_track_cost_callback.py+++ b/tests/test_litellm/proxy/hooks/test_proxy_track_cost_callback.py@@ -1980,15 +1980,15 @@ async def test_proxy_track_cost_callback_carries_guardrail_info_to_sl_object():}with (- patch(+ patch( # test-quality-ok: spend counters are a proxy_server global the callback reads lazily, no seam"litellm.proxy.proxy_server.increment_spend_counters",new_callable=AsyncMock,),- patch(+ patch( # test-quality-ok: update_cache is a proxy_server global the callback reads lazily, no seam"litellm.proxy.proxy_server.update_cache",new_callable=AsyncMock,),- patch(+ patch( # test-quality-ok: callback imports proxy_logging_obj off proxy_server in its body, no seam"litellm.proxy.proxy_server.proxy_logging_obj",) as mock_proxy_logging,):