From 2a8e949350a7fab1d2f149f07cfdfb68128d37d6 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 17 Aug 2026 20:30:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=BF=AE=E5=A4=8D=20mock=20clip?= =?UTF-8?q?=20=E7=BC=BA=E5=A4=B1=E5=AD=97=E6=AE=B5=E5=AF=BC=E8=87=B4=207?= =?UTF-8?q?=20=E4=B8=AA=E5=8D=95=E6=B5=8B=20Pydantic=20=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=20(#1407)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/test_templates_editor_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_templates_editor_api.py b/tests/unit/test_templates_editor_api.py index 361866831..06044e2a6 100755 --- a/tests/unit/test_templates_editor_api.py +++ b/tests/unit/test_templates_editor_api.py @@ -61,6 +61,9 @@ def _make_mock_clip(clip_id="clip-001", order=0, duration=10.0, clip_type="video clip.config = {} clip.asset_id = "asset-001" clip.status = "ready" + clip.template_clip_config_id = "" + clip.created_at = None + clip.updated_at = None return clip @@ -327,7 +330,8 @@ class TestClipSplitMerge: resp = c.post(BASE + "/clips/merge", json={"clip_ids": ["clip-001", "clip-002"]}) assert resp.status_code == 200 data = resp.json() - assert "id" in data + assert "merged_clip" in data + assert "id" in data["merged_clip"] mock_plan_svc.merge_clips.assert_called_once_with(["clip-001", "clip-002"]) def test_merge_clips_single_422(self, client):