fix: make pytest collection coexist with ComfyUI root __init__

pytest collects the repo root as a Package and imports its __init__.py
during test setup; guard the ComfyUI-only relative imports behind
__package__ so the suite can import gates.* standalone. Drop the
tests/ package marker and pin pythonpath/testpaths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
EthanfelandClaude Opus 4.8 committed 2026-06-21 12:56:32 +02:00
1 parent d75f73af2d
commit af3e78b29d
3 files changed
+21 -2

No files matched your search

View File
Whitespace-only changes.