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
Some checks failed
Publish to Comfy registry / Publish Custom Node to registry (push) Has been cancelled
This commit is contained in:
parent
e2ae630ec2
commit
9d1de37c37
@ -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"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user