Add continuation tail preparation node
This commit is contained in:
@@ -14,10 +14,10 @@ class DumasVideoNodeTests(unittest.TestCase):
|
||||
cls.module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(cls.module)
|
||||
|
||||
def test_registers_two_generic_video_nodes(self):
|
||||
def test_registers_generic_video_nodes(self):
|
||||
self.assertEqual(
|
||||
set(self.module.NODE_CLASS_MAPPINGS),
|
||||
{"DumasStandaloneVideo", "DumasJoinVideoClips"},
|
||||
{"DumasStandaloneVideo", "DumasPrepareContinuation", "DumasJoinVideoClips"},
|
||||
)
|
||||
|
||||
def test_standalone_node_exposes_full_and_complete_outputs(self):
|
||||
@@ -34,6 +34,14 @@ class DumasVideoNodeTests(unittest.TestCase):
|
||||
self.assertEqual(optional["clip_2_reference_frames"][1]["default"], 0)
|
||||
self.assertEqual(optional["clip_6_reference_frames"][1]["max"], 4096)
|
||||
|
||||
def test_prepare_continuation_exposes_clean_and_tail_outputs(self):
|
||||
node = self.module.DumasPrepareContinuationNode
|
||||
self.assertEqual(
|
||||
node.RETURN_NAMES,
|
||||
("clean_clip", "next_reference", "reference_frames", "clean_duration"),
|
||||
)
|
||||
self.assertIn("raw_clip", node.INPUT_TYPES()["required"])
|
||||
|
||||
def test_video_fps_parses_frame_rate(self):
|
||||
self.assertEqual(
|
||||
self.module._video_fps({"streams": [{"codec_type": "video", "r_frame_rate": "24/1"}]}),
|
||||
|
||||
Reference in New Issue
Block a user