fix(test): 修复 mock clip 缺失字段导致 7 个单测 Pydantic 校验失败 (#1407)
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 0s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m11s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 1m41s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m21s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 6m7s
CI/CD Pipeline / Integration Tests (push) Successful in 2m57s
CI/CD Pipeline / Unit Tests (push) Failing after 10m10s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 10m16s
CI/CD Pipeline / Build Staging API Image (push) Successful in 26m22s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m22s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m1s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m27s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 5m34s
CI/CD Pipeline / Canary Release to Production (push) Failing after 714h24m43s
CI/CD Pipeline / Production Browser E2E (push) Failing after 714h45m47s
CI/CD Pipeline / Deploy Production (push) Failing after 714h45m48s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 714h45m49s
CI/CD Pipeline / Build Production Web Image (push) Failing after 714h45m49s
CI/CD Pipeline / PR Build API Image (push) Failing after 714h55m56s
CI/CD Pipeline / Build Production API Image (push) Failing after 714h45m49s
CI/CD Pipeline / Frontend Lint (push) Failing after 714h56m0s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 714h55m52s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 714h56m3s
CI/CD Pipeline / CI Gate (push) Failing after 715h19m25s
CI/CD Pipeline / PR Build Web Image (push) Failing after 715h29m31s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 0s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m11s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 1m41s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m21s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 6m7s
CI/CD Pipeline / Integration Tests (push) Successful in 2m57s
CI/CD Pipeline / Unit Tests (push) Failing after 10m10s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 10m16s
CI/CD Pipeline / Build Staging API Image (push) Successful in 26m22s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m22s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m1s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m27s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 5m34s
CI/CD Pipeline / Canary Release to Production (push) Failing after 714h24m43s
CI/CD Pipeline / Production Browser E2E (push) Failing after 714h45m47s
CI/CD Pipeline / Deploy Production (push) Failing after 714h45m48s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 714h45m49s
CI/CD Pipeline / Build Production Web Image (push) Failing after 714h45m49s
CI/CD Pipeline / PR Build API Image (push) Failing after 714h55m56s
CI/CD Pipeline / Build Production API Image (push) Failing after 714h45m49s
CI/CD Pipeline / Frontend Lint (push) Failing after 714h56m0s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 714h55m52s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 714h56m3s
CI/CD Pipeline / CI Gate (push) Failing after 715h19m25s
CI/CD Pipeline / PR Build Web Image (push) Failing after 715h29m31s
This commit was merged in pull request #1407.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user