From dc70275e5df8b02fca8a609d9ceef49bbd504b97 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Sat, 18 Jul 2026 15:31:18 +0800 Subject: [PATCH] =?UTF-8?q?style:=20black=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/test_plan_generator.py | 36 ++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/tests/unit/test_plan_generator.py b/tests/unit/test_plan_generator.py index 58e829dff..a7202e079 100755 --- a/tests/unit/test_plan_generator.py +++ b/tests/unit/test_plan_generator.py @@ -791,10 +791,20 @@ class TestTemplateConfigPropagation: template = _make_template(editing_mode=EditingMode.ONE_TAKE.value) clip_configs = _make_clip_configs( specs=[ - {"clip_type": ClipType.MAIN, "order": 0, "min_duration": 3.0, "max_duration": 5.0, - "config": {"speed_ratio": 1.2, "name": "开场"}}, - {"clip_type": ClipType.MAIN, "order": 1, "min_duration": 3.0, "max_duration": 5.0, - "config": {"speed_ratio": 0.8, "name": "结尾"}}, + { + "clip_type": ClipType.MAIN, + "order": 0, + "min_duration": 3.0, + "max_duration": 5.0, + "config": {"speed_ratio": 1.2, "name": "开场"}, + }, + { + "clip_type": ClipType.MAIN, + "order": 1, + "min_duration": 3.0, + "max_duration": 5.0, + "config": {"speed_ratio": 0.8, "name": "结尾"}, + }, ] ) @@ -814,8 +824,13 @@ class TestTemplateConfigPropagation: template = _make_template(editing_mode=EditingMode.ONE_TAKE.value) clip_configs = _make_clip_configs( specs=[ - {"clip_type": ClipType.MAIN, "order": 0, "min_duration": 3.0, "max_duration": 5.0, - "config": {"speed_ratio": 1.2, "playback_speed": 1.5}}, + { + "clip_type": ClipType.MAIN, + "order": 0, + "min_duration": 3.0, + "max_duration": 5.0, + "config": {"speed_ratio": 1.2, "playback_speed": 1.5}, + }, ] ) @@ -851,8 +866,13 @@ class TestTemplateConfigPropagation: template = _make_template(editing_mode=EditingMode.ONE_TAKE.value) clip_configs = _make_clip_configs( specs=[ - {"clip_type": ClipType.MAIN, "order": 0, "min_duration": 3.0, "max_duration": 5.0, - "config": {"speed_ratio": 1.2, "name": "开场", "custom_field": "value"}}, + { + "clip_type": ClipType.MAIN, + "order": 0, + "min_duration": 3.0, + "max_duration": 5.0, + "config": {"speed_ratio": 1.2, "name": "开场", "custom_field": "value"}, + }, ] )