chore: make pytest runnable outside ComfyUI (importlib mode + tests on pythonpath)
Some checks failed
Publish to Comfy registry / Publish Custom Node to registry (push) Has been cancelled

This commit is contained in:
Z User 2026-09-26 19:26:14 +00:00
parent e2ae630ec2
commit 9d1de37c37

View File

@ -14,3 +14,11 @@ PublisherId = ""
DisplayName = "Moxie Multimedia Suite" DisplayName = "Moxie Multimedia Suite"
Icon = "" 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"]