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_dynamic_azure_params
Ishaan Jaffc010cdef5912
diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.pyindex 5fe4984c17e..59f5a38f08f 100644--- a/tests/local_testing/test_completion.py+++ b/tests/local_testing/test_completion.py@@ -4364,14 +4364,14 @@ async def test_dynamic_azure_params(stream, sync_mode):## recreate mock clientif sync_mode:- mock_client = MagicMock(return_value="Hello world!")+ new_mock_client = MagicMock(return_value="Hello world!")else:- mock_client = AsyncMock(return_value="Hello world!")+ new_mock_client = AsyncMock(return_value="Hello world!")## CHECK IF NEW CLIENT IS USED (PARAM CHANGE)with patch.object(- client.chat.completions.with_raw_response, "create", new=mock_client- ) as mock_client:+ client.chat.completions.with_raw_response, "create", new=new_mock_client+ ) as new_mock_client:try:if sync_mode:_ = completion(@@ -4393,7 +4393,7 @@ async def test_dynamic_azure_params(stream, sync_mode):passtry:- mock_client.assert_not_called()+ new_mock_client.assert_called()except Exception as e:raise e