New nodes: - Isulion Censored Part: blur/pixelate/black bar/noise over a mask and/or a percent rectangle; accepts 2D/3D/4D masks and fails closed (blacks the item out) instead of passing an uncensored image through - Prompt Vault Save/Load: named prompt library stored in ComfyUI's user directory (outside the checkout, so updates never conflict), seeded from prompt_vault.example.json; Load re-runs when the vault changes Refactor: - SimpleSelectorNode base: ~20 selector nodes use an instance RNG instead of reseeding the global random module (same seed => same output) - Theme handlers declare DISPLAY_NAME; theme package auto-discovers modules - __init__ imports node classes directly Fixes: - net_utils: re-validate every redirect hop, unwrap IPv4-mapped IPv6, block NAT64 and all non-global addresses (SSRF) - Multiple Prompt Generator: no duplicate prompts for themes listed in two categories; 6 themes missing from every category are now reachable - Shutdown node: parameter renamed to match its "any" input (TypeError) - ConfigManager: deterministic (sorted) merge order, warns on key collisions; drop stale space_colony copy from tropical_paradise_config - Mega Prompt V3: seed honored again with randomize=disable Breaking: Civitai api_key widget removed (use CIVITAI_API_TOKEN), absolute paths refused by Load Images, Negative Prompt pools de-duplicated (shorter "strict" output), Dynamic Random theme order is now alphabetical. Tooling: pytest suite (51 tests), GitHub CI (compileall, pytest, ruff), ruff config, uv.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
822 B
Python
25 lines
822 B
Python
"""Pytest bootstrap for the Isulion test suite.
|
|
|
|
This file lives in tests/ (NOT at the repo root) on purpose: the repo root is
|
|
itself an importable package (``__init__.py``), so a root conftest.py would be
|
|
imported *through* that package and would trigger ``import torch`` before any
|
|
stubbing could happen.
|
|
|
|
Stubs the ComfyUI-only / heavy third-party modules (torch, numpy, PIL,
|
|
requests, folder_paths) BEFORE pytest collects any test module, then exposes
|
|
the shared helpers from tests/isulion_testkit.py.
|
|
"""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parent.parent
|
|
TESTS_DIR = Path(__file__).resolve().parent
|
|
for entry in (str(TESTS_DIR), str(ROOT)):
|
|
if entry not in sys.path:
|
|
sys.path.insert(0, entry)
|
|
|
|
from isulion_testkit import stub_heavy_deps # noqa: E402
|
|
|
|
stub_heavy_deps()
|