From 9d1de37c3725a27805eba15e33e69539b6fff633 Mon Sep 17 00:00:00 2001 From: Z User Date: Sat, 26 Sep 2026 19:26:14 +0000 Subject: [PATCH] chore: make pytest runnable outside ComfyUI (importlib mode + tests on pythonpath) --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e06593c..df16aa8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,3 +14,11 @@ PublisherId = "" DisplayName = "Moxie Multimedia Suite" Icon = "" +[tool.pytest.ini_options] +# importlib mode avoids importing the pack root __init__.py (which needs a +# live ComfyUI environment) during test collection; pythonpath exposes the +# tests/ folder so test modules can share stub helpers across files. +addopts = "--import-mode=importlib" +pythonpath = ["tests"] +testpaths = ["tests"] +