mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Guard tenacity import in e2e Azure batch tests
tenacity is not in pyproject.toml dependencies, causing ImportError during test collection. Use pytest.importorskip to gracefully skip when tenacity is not available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
51552eafe7
commit
8495e05221
2 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ import httpx
|
|||
import openai
|
||||
import psycopg2
|
||||
import pytest
|
||||
|
||||
tenacity = pytest.importorskip("tenacity", reason="tenacity required for e2e batch tests")
|
||||
from tenacity import Retrying, stop_after_delay, wait_fixed
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ import warnings
|
|||
import httpx
|
||||
import openai
|
||||
import pytest
|
||||
|
||||
tenacity = pytest.importorskip("tenacity", reason="tenacity required for e2e batch tests")
|
||||
from tenacity import RetryError
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue