diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 00000000000..332878b2f1d --- /dev/null +++ b/tests/conftest.py @@ -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}" + )