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] WatsonX tests failing on CI due to missing env vars
Yuneng Jiang123052ecf866
diff --git a/tests/llm_translation/test_watsonx.py b/tests/llm_translation/test_watsonx.pyindex d6a82b44969..ce02d3aac6f 100644--- a/tests/llm_translation/test_watsonx.py+++ b/tests/llm_translation/test_watsonx.py@@ -13,6 +13,16 @@ import pytestfrom typing import Optional[email protected](autouse=True)+def watsonx_env_vars(monkeypatch):+ """Set required WatsonX env vars so the provider passes validation.+ Also clear WATSONX_ZENAPIKEY/WATSONX_TOKEN so they don't bypass the IAM token mock."""+ monkeypatch.setenv("WATSONX_URL", "https://us-south.ml.cloud.ibm.com")+ monkeypatch.setenv("WATSONX_PROJECT_ID", "test-project-id")+ monkeypatch.delenv("WATSONX_ZENAPIKEY", raising=False)+ monkeypatch.delenv("WATSONX_TOKEN", raising=False)++@pytest.fixturedef watsonx_chat_completion_call():def _call(