style: auto-format with black + isort + prettier [skip ci-format-check]
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 59s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m54s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m4s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 2m2s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 46s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m30s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 57s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m6s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 2m2s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m57s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 5m23s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 4m0s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 4m35s
AI Code Review / AI Code Review (pull_request) Successful in 5m56s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m37s
CI/CD Pipeline / CI Gate (pull_request) Successful in 5s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 32s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 53s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1152h44m1s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1152h44m2s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1152h44m2s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1152h47m45s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1152h44m2s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1152h44m3s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1152h47m41s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1152h48m41s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1152h49m48s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1152h49m50s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1152h49m52s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 1153h17m12s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1153h20m53s

This commit is contained in:
CI Bot
2026-07-30 06:37:14 +00:00
parent a7fe0efc24
commit ef74a30700
2 changed files with 16 additions and 5 deletions
@@ -642,4 +642,3 @@
font-size: 36px;
}
}
+16 -4
View File
@@ -47,8 +47,16 @@ def _make_auth_user(user_id: str = "user_001") -> MagicMock:
class TestVoicesCloneFromProfile:
"""测试 /voices?type=clone 从克隆音色档案读取。"""
def _call_list_voices(self, type_filter=None, status_filter=None, skip=0, limit=50,
clone_profiles=None, clone_count=0, user_id="user_001"):
def _call_list_voices(
self,
type_filter=None,
status_filter=None,
skip=0,
limit=50,
clone_profiles=None,
clone_count=0,
user_id="user_001",
):
"""调用 list_voices_unified 路由函数。"""
from app.api.routes.voices import list_voices_unified
@@ -242,8 +250,12 @@ class TestVoicesCloneFromProfile:
def test_multiple_statuses(self) -> None:
"""不同状态的克隆音色返回正确的 status 字段。"""
for status in [VoiceCloneStatus.PENDING, VoiceCloneStatus.PROCESSING,
VoiceCloneStatus.READY, VoiceCloneStatus.FAILED]:
for status in [
VoiceCloneStatus.PENDING,
VoiceCloneStatus.PROCESSING,
VoiceCloneStatus.READY,
VoiceCloneStatus.FAILED,
]:
profile = _make_clone_profile(id=f"c_{status.value}", status=status)
result, _, _ = self._call_list_voices(
type_filter="clone",