test(#2001): mock cover_title_config in render route tests
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m0s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m30s
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m58s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m48s
AI Code Review / AI Code Review (pull_request) Successful in 7m22s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 10m47s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 25m9s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 26m35s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 31m11s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 34m42s
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled

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