feat(tests): add conftest.py for pytest configuration and environment setup

This commit is contained in:
harish-berri 2026-04-29 20:53:09 +00:00
parent 8dda834cf9
commit e21326bc4e

11
tests/conftest.py Normal file
View 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}"
)