git-subtree-dir: vendor/dumas_h3_continuum git-subtree-split: d07ed31b442d283d6a1740f875a843b9feda4c91
29 lines
943 B
Python
29 lines
943 B
Python
from ComfyUI_H3_Continuum_Join.constants import DIAGNOSTICS_BASIC
|
|
from ComfyUI_H3_Continuum_Join.v2.nodes import _repair_v200_example_widget_shift
|
|
|
|
|
|
def test_malformed_v200_example_widget_shift_is_repaired():
|
|
values = _repair_v200_example_widget_shift(
|
|
audio_continuity=True,
|
|
exact_total_duration=DIAGNOSTICS_BASIC,
|
|
diagnostics=0,
|
|
reroll_from_chunk=0,
|
|
reroll_nonce=True,
|
|
strict_compatibility=False,
|
|
debug=False,
|
|
)
|
|
assert values == (True, True, DIAGNOSTICS_BASIC, 0, 0, True, False)
|
|
|
|
|
|
def test_valid_v2_widget_values_are_unchanged():
|
|
values = _repair_v200_example_widget_shift(
|
|
audio_continuity=False,
|
|
exact_total_duration=False,
|
|
diagnostics=DIAGNOSTICS_BASIC,
|
|
reroll_from_chunk=2,
|
|
reroll_nonce=7,
|
|
strict_compatibility=True,
|
|
debug=True,
|
|
)
|
|
assert values == (False, False, DIAGNOSTICS_BASIC, 2, 7, True, True)
|