mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
feat(tests): add conftest.py for pytest configuration and environment setup
This commit is contained in:
parent
8dda834cf9
commit
e21326bc4e
1 changed files with 11 additions and 0 deletions
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
if "LITELLM_UI_PATH" not in os.environ:
|
||||
worker = os.environ.get("PYTEST_XDIST_WORKER", f"pid-{os.getpid()}")
|
||||
os.environ["LITELLM_UI_PATH"] = str(
|
||||
Path(__file__).resolve().parents[1]
|
||||
/ ".pytest_cache"
|
||||
/ f"litellm-ui-{worker}"
|
||||
)
|
||||
Loading…
Add table
Reference in a new issue