fix: 修复统一渲染后遗留的测试引用
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 / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 38s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m3s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m19s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m28s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m45s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m44s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 2m44s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m27s
AI Code Review / AI Code Review (pull_request) Failing after 3m54s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 5m55s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 6m58s
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m54s
CI/CD Pipeline / CI Gate (pull_request) Failing after 6s

- test_1294_preview_voice_injection: 移除 _render_video() 调用中的 is_preview 参数
- test_generation_preview: 更新分辨率断言(预览不再设置自定义分辨率)
This commit is contained in:
CI Bot
2026-08-10 23:24:15 +08:00
parent 0be5bc1837
commit 0213be0428
2 changed files with 2 additions and 3 deletions
@@ -169,7 +169,6 @@ class TestRenderVideoVoiceInjection:
temp_path=Path("/tmp"),
output_name="test_output.mp4",
resolution="854x480",
is_preview=True,
voice_ids=["voice_abc"],
)
+2 -2
View File
@@ -1209,7 +1209,7 @@ class TestPreviewRouteAutoInfersVideoRatio:
"""验证预览路由在前端未传 video_ratio 时自动从模板推断。"""
def test_auto_infer_pip_resolution(self):
"""前端传 video_ratio='',模板 mode=pip → resolution=480x854"""
"""前端传 video_ratio='',模板 mode=pip → resolution 为空(使用用户默认导出配置)"""
from app.api.routes.generation_preview import create_preview_generation_task
from app.schemas.generation_task import CreatePreviewGenerationTaskRequest
@@ -1254,7 +1254,7 @@ class TestPreviewRouteAutoInfersVideoRatio:
# Verify the resolution passed to CreateGenerationTaskCommand
call_args = MockUC.return_value.execute.call_args
cmd = call_args[0][0]
assert cmd.resolution == "480x854", f"Expected 480x854, got {cmd.resolution}"
assert cmd.resolution == "", f"Expected empty resolution, got {cmd.resolution}"
# ═══════════════════════════════════════════════════════════════════════════════