mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #24814 from BerriAI/litellm_/agitated-montalcini
[Fix] WatsonX Tests Failing on CI Due to Missing Env Vars
This commit is contained in:
commit
f2deefe453
1 changed files with 10 additions and 0 deletions
|
|
@ -13,6 +13,16 @@ import pytest
|
|||
from typing import Optional
|
||||
|
||||
|
||||
@pytest.fixture(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.fixture
|
||||
def watsonx_chat_completion_call():
|
||||
def _call(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue