Files
olivv-cs-ComfyUI-FunPack/modules/sampling/tests/test_everything_together.py
T
Claude 3adebb731f Rename FunPack to FunUI (5.0.3 Classy Chopper): /fun endpoint, wink logo, load-time migration of old names
Old project/workflow names and browser settings migrate on load; /funpack redirects to /fun.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016acRss69eH1235eRdFTZHY
2026-10-25 13:11:03 +00:00

28 lines
1.3 KiB
Python

"""Every rating-driven and sampling modifier on at once: nothing is rejected or reordered into a cycle."""
import pytest
@pytest.fixture(autouse=True)
def _needs_comfy(comfyui):
"""Imports comfy."""
def test_all_modifiers_install_together_in_a_sane_order(tiny_h3, tmp_path, monkeypatch):
from comfy.patcher_extension import WrappersMP
from modules.sampling.modifiers.nodes import FunUILoadModifiers
from modules.system.taste import store
monkeypatch.setattr(store, "ROOT", tmp_path / "taste")
settings = {"taste": {"key": "fox"}}
for m, extra in {"dynashift": {}, "output_guidance": {}, "trajectory_guidance": {}, "score_slider": {},
"decisiveness": {}, "shot_memory": {}, "late_branch": {"block": 2},
"stas": {"block": 1}, "camera_move": {"pan_x": 0.3},
"reins": {"blocks": "3"}}.items():
settings[m] = {"enabled": True, **extra}
patched, status = FunUILoadModifiers.execute(tiny_h3.patcher, settings).result
for m in ("decisiveness", "shot_memory", "late_branch", "stas", "camera_move", "block_influence"):
assert m in status, (m, status)
order = list(patched.wrappers[WrappersMP.APPLY_MODEL])
assert order.index("funui.camera_move") < order.index("funui.late_branch")
assert order.index("funui.score_slider") < order.index("funui.late_branch")