Skip to content

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]

test: narrow Azure parity exception assertion

Yujong Leedf8966591939
diff --git a/tests/test_litellm/secret_managers/test_secret_manager_handler.py b/tests/test_litellm/secret_managers/test_secret_manager_handler.py
index 0925198992b..b4838912d27 100644
--- a/tests/test_litellm/secret_managers/test_secret_manager_handler.py
+++ b/tests/test_litellm/secret_managers/test_secret_manager_handler.py
@@ -89,7 +89,9 @@ def test_azure_key_vault_matches_rust_parity_fixture() -> None:
value=secret,
)
if case.expected.missing or case.expected.error:
- with pytest.raises(Exception):
+ with pytest.raises(
+ AzureResourceNotFoundError if case.expected.missing else AzureHttpResponseError
+ ):
get_secret_from_manager(
secret_name=case.secret_name,
key_manager=KeyManagementSystem.AZURE_KEY_VAULT.value,