From bba8beffef6beee8d35fc1a8cd806b29261e01ac Mon Sep 17 00:00:00 2001 From: saas-backend Date: Sun, 20 Sep 2026 23:35:56 +0800 Subject: [PATCH] test(#2001): mock cover_title_config in render route tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI 单测 mock job 缺少 cover_title_config 属性导致 pydantic ValidationError --- tests/unit/test_ai_avatar_render_routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/test_ai_avatar_render_routes.py b/tests/unit/test_ai_avatar_render_routes.py index 542fe622e..4e992d8fd 100644 --- a/tests/unit/test_ai_avatar_render_routes.py +++ b/tests/unit/test_ai_avatar_render_routes.py @@ -50,6 +50,7 @@ def _make_mock_render_job( m.b_roll_segments = [] m.title_config = {} m.cover_config = {} + m.cover_title_config = {} m.status = status m.progress = progress m.output_video_url = output_video_url @@ -93,6 +94,7 @@ class TestRenderRoutes: body.b_roll_segments = [] body.title_config = {} body.cover_config = {} + body.cover_title_config = {} body.project_id = "" result = create_render_job( @@ -118,6 +120,7 @@ class TestRenderRoutes: body.b_roll_segments = [] body.title_config = {} body.cover_config = {} + body.cover_title_config = {} body.project_id = "" with pytest.raises(HTTPException) as exc_info: @@ -141,6 +144,7 @@ class TestRenderRoutes: body.b_roll_segments = [] body.title_config = {} body.cover_config = {} + body.cover_title_config = {} body.project_id = "" with pytest.raises(HTTPException) as exc_info: