Files
xiaoxia-saas/tests/unit
CI Bot caa5113f7f
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 34s
AI Code Review / AI Code Review (pull_request) Successful in 1m19s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m50s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m51s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 2m3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m23s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m37s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 3m13s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 3m36s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 3m55s
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
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 / PR Build Web Image (pull_request) Failing after 715h16m51s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 715h16m52s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 715h17m23s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 715h17m26s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 715h17m24s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 715h17m27s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 715h17m28s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 715h17m28s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 715h50m30s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 715h51m2s
fix(test): add missing str fields to mock clip to fix Pydantic validation
_make_mock_clip used MagicMock which auto-creates attributes as MagicMock
objects. EditorClipResponse requires template_clip_config_id, created_at,
and updated_at to be str. Pydantic validation fails with MagicMock values.

Fix: explicitly set these fields to proper types in _make_mock_clip:
- template_clip_config_id = ""
- created_at = None (handled by _fmt_dt → "")
- updated_at = None (handled by _fmt_dt → "")

Fixes 7 failing tests in TestClipEndpoints and TestClipSplitMerge.
2026-08-17 20:08:48 +08:00
..