test(#2001): mock cover_title_config in render route tests
CI 单测 mock job 缺少 cover_title_config 属性导致 pydantic ValidationError
This commit is contained in:
@@ -50,6 +50,7 @@ def _make_mock_render_job(
|
|||||||
m.b_roll_segments = []
|
m.b_roll_segments = []
|
||||||
m.title_config = {}
|
m.title_config = {}
|
||||||
m.cover_config = {}
|
m.cover_config = {}
|
||||||
|
m.cover_title_config = {}
|
||||||
m.status = status
|
m.status = status
|
||||||
m.progress = progress
|
m.progress = progress
|
||||||
m.output_video_url = output_video_url
|
m.output_video_url = output_video_url
|
||||||
@@ -93,6 +94,7 @@ class TestRenderRoutes:
|
|||||||
body.b_roll_segments = []
|
body.b_roll_segments = []
|
||||||
body.title_config = {}
|
body.title_config = {}
|
||||||
body.cover_config = {}
|
body.cover_config = {}
|
||||||
|
body.cover_title_config = {}
|
||||||
body.project_id = ""
|
body.project_id = ""
|
||||||
|
|
||||||
result = create_render_job(
|
result = create_render_job(
|
||||||
@@ -118,6 +120,7 @@ class TestRenderRoutes:
|
|||||||
body.b_roll_segments = []
|
body.b_roll_segments = []
|
||||||
body.title_config = {}
|
body.title_config = {}
|
||||||
body.cover_config = {}
|
body.cover_config = {}
|
||||||
|
body.cover_title_config = {}
|
||||||
body.project_id = ""
|
body.project_id = ""
|
||||||
|
|
||||||
with pytest.raises(HTTPException) as exc_info:
|
with pytest.raises(HTTPException) as exc_info:
|
||||||
@@ -141,6 +144,7 @@ class TestRenderRoutes:
|
|||||||
body.b_roll_segments = []
|
body.b_roll_segments = []
|
||||||
body.title_config = {}
|
body.title_config = {}
|
||||||
body.cover_config = {}
|
body.cover_config = {}
|
||||||
|
body.cover_title_config = {}
|
||||||
body.project_id = ""
|
body.project_id = ""
|
||||||
|
|
||||||
with pytest.raises(HTTPException) as exc_info:
|
with pytest.raises(HTTPException) as exc_info:
|
||||||
|
|||||||
Reference in New Issue
Block a user