style: auto-format with black + isort + prettier [skip ci-format-check]
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 / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 46s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 29s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m47s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m50s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m48s
AI Code Review / AI Code Review (pull_request) Successful in 2m2s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 2m14s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m48s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m43s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 4m11s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 6m8s
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 / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m16s
CI/CD Pipeline / CI Gate (pull_request) Successful in 6s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 1m13s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 1m20s

This commit is contained in:
CI Bot
2026-08-24 03:13:03 +00:00
parent 26b27a34fd
commit bf5244a6e1
+38 -12
View File
@@ -266,24 +266,50 @@ class TestPlanIdFallbackExecution:
from app.schemas.generation_task import GenerationTaskResponse
with (
patch("apps.api.app.api.routes.generation_tasks._resolve_project_and_library", return_value=("proj-1", None)),
patch(
"apps.api.app.api.routes.generation_tasks._resolve_project_and_library", return_value=("proj-1", None)
),
patch("apps.api.app.api.routes.generation_tasks.CreateGenerationTaskUseCase") as mock_uc_cls,
patch("apps.api.app.api.routes.generation_tasks.safe_enqueue_generation_task", return_value=True),
patch("apps.api.app.api.routes.generation_tasks._to_generation_task_response") as mock_resp_fn,
):
mock_uc_cls.return_value.execute.return_value = mock_task
mock_resp_fn.return_value = GenerationTaskResponse(
id="task-1", project_id="proj-1", asset_library_id="",
strategy_id="one_take", voice_library_id="", template_id="tpl-1",
asset_ids=[], title_ids=[], voice_ids=[], source_edit_plan_id="",
asset_select_mode="", batch_id="", video_title="", resolution="",
bgm_config={}, is_preview=False, source_task_id="",
output_width=1280, output_height=720, cover_url="", custom_title="",
title_config={}, logs="[]", status="pending", progress=0.0,
error_message="", created_at="2026-01-01T00:00:00Z",
updated_at="2026-01-01T00:00:00Z", started_at=None, completed_at=None,
created_by_user_id="user-1", auto_retry_enabled=False,
auto_retry_max=0, auto_retry_count=0, result_count=0,
id="task-1",
project_id="proj-1",
asset_library_id="",
strategy_id="one_take",
voice_library_id="",
template_id="tpl-1",
asset_ids=[],
title_ids=[],
voice_ids=[],
source_edit_plan_id="",
asset_select_mode="",
batch_id="",
video_title="",
resolution="",
bgm_config={},
is_preview=False,
source_task_id="",
output_width=1280,
output_height=720,
cover_url="",
custom_title="",
title_config={},
logs="[]",
status="pending",
progress=0.0,
error_message="",
created_at="2026-01-01T00:00:00Z",
updated_at="2026-01-01T00:00:00Z",
started_at=None,
completed_at=None,
created_by_user_id="user-1",
auto_retry_enabled=False,
auto_retry_max=0,
auto_retry_count=0,
result_count=0,
)
from apps.api.app.api.routes.generation_tasks import create_generation_task