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_router_init_azure_service_principal_with_secret_with_environment_variables
Ishaan Jaffer669d2a6d8bb6
diff --git a/tests/local_testing/test_router_client_init.py b/tests/local_testing/test_router_client_init.pyindex 3128a3d2910..f2b82b651dd 100644--- a/tests/local_testing/test_router_client_init.py+++ b/tests/local_testing/test_router_client_init.py@@ -85,6 +85,7 @@ def test_router_init_azure_service_principal_with_secret_with_environment_variab"""monkeypatch.delenv("AZURE_AI_API_KEY", raising=False)monkeypatch.delenv("AZURE_OPENAI_API_KEY", raising=False)+ monkeypatch.delenv("AZURE_API_KEY", raising=False)litellm.enable_azure_ad_token_refresh = True# mock the token provider functionmocked_func_generating_token = MagicMock(return_value="test_token")