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(tests): add cache flush fixture for reliable HTTP client isolation
Julio Quinteros Proea0cfac9957b
diff --git a/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/test_vertex_ai_gpt_oss_transformation.py b/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/test_vertex_ai_gpt_oss_transformation.pyindex fb5529d4752..b6d6402bcd4 100644--- a/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/test_vertex_ai_gpt_oss_transformation.py+++ b/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/test_vertex_ai_gpt_oss_transformation.py@@ -15,6 +15,14 @@ from litellm.llms.vertex_ai.vertex_ai_partner_models.gpt_oss.transformation impo)[email protected](autouse=True)+def _reset_litellm_http_client_cache():+ """Ensure each test gets a fresh async HTTP client mock."""+ from litellm import in_memory_llm_clients_cache++ in_memory_llm_clients_cache.flush_cache()++@pytest.fixture(autouse=True)def clean_vertex_env():"""Clear Google/Vertex AI environment variables before each test to prevent test isolation issues."""