Files
olivv-cs-ComfyUI-FunPack/core/tests/conftest.py
T
digital-garbage d5effb0378 core: serve the app, with the module allowlist as the wall
Static serving routes through a pure resolve(), so the extension allowlist and
the traversal guard are tested without aiohttp. modules/ serves .js only: a
module cannot ship a stylesheet even if one is written.
2026-08-28 14:18:55 +03:00

8 lines
227 B
Python

import sys
from pathlib import Path
# Tests import `core.*`; make the repo root importable however pytest was invoked.
ROOT = Path(__file__).resolve().parents[2]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))