From e21326bc4e024bd0ca1c85ad6fad49b56b6f80bd Mon Sep 17 00:00:00 2001 From: harish-berri Date: Wed, 29 Apr 2026 20:53:09 +0000 Subject: [PATCH] feat(tests): add conftest.py for pytest configuration and environment setup --- tests/conftest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/conftest.py 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}" + )