test(#2001): mock cover_title_config in render route tests

CI 单测 mock job 缺少 cover_title_config 属性导致 pydantic ValidationError
This commit is contained in:
saas-backend
2026-09-20 23:35:56 +08:00
committed by xiaoxia
parent 995ee6bd66
commit bba8beffef
@@ -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: