style: auto-format with black + isort + prettier [skip ci-format-check]
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m16s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 2m52s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 3m36s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 4m17s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m2s
CI/CD Pipeline / Validate - Code Quality (push) Failing after 9m11s
CI/CD Pipeline / Unit Tests (push) Failing after 13m50s
CI/CD Pipeline / Build Staging API Image (push) Successful in 14m27s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 59s
CI/CD Pipeline / Integration Tests (push) Successful in 6m25s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 42s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 53s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 2m59s
CI/CD Pipeline / Canary Release to Production (push) Failing after 857h26m50s
CI/CD Pipeline / Production Browser E2E (push) Failing after 857h31m23s
CI/CD Pipeline / Deploy Production (push) Failing after 857h31m24s
CI/CD Pipeline / Build Production API Image (push) Failing after 857h31m24s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 857h31m24s
CI/CD Pipeline / PR Build Web Image (push) Failing after 857h45m14s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 857h45m14s
CI/CD Pipeline / PR Build API Image (push) Failing after 857h45m14s
CI/CD Pipeline / Frontend Lint (push) Failing after 857h45m14s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 857h45m17s
CI/CD Pipeline / CI Gate (push) Failing after 858h3m6s
CI/CD Pipeline / Build Production Web Image (push) Failing after 858h4m52s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m16s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 2m52s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 3m36s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 4m17s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m2s
CI/CD Pipeline / Validate - Code Quality (push) Failing after 9m11s
CI/CD Pipeline / Unit Tests (push) Failing after 13m50s
CI/CD Pipeline / Build Staging API Image (push) Successful in 14m27s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 59s
CI/CD Pipeline / Integration Tests (push) Successful in 6m25s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 42s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 53s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 2m59s
CI/CD Pipeline / Canary Release to Production (push) Failing after 857h26m50s
CI/CD Pipeline / Production Browser E2E (push) Failing after 857h31m23s
CI/CD Pipeline / Deploy Production (push) Failing after 857h31m24s
CI/CD Pipeline / Build Production API Image (push) Failing after 857h31m24s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 857h31m24s
CI/CD Pipeline / PR Build Web Image (push) Failing after 857h45m14s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 857h45m14s
CI/CD Pipeline / PR Build API Image (push) Failing after 857h45m14s
CI/CD Pipeline / Frontend Lint (push) Failing after 857h45m14s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 857h45m17s
CI/CD Pipeline / CI Gate (push) Failing after 858h3m6s
CI/CD Pipeline / Build Production Web Image (push) Failing after 858h4m52s
This commit is contained in:
@@ -233,9 +233,10 @@ class TestAIRunTasks:
|
||||
|
||||
def test_run_generate_cover_ai_frame_raises_without_mediakit(self):
|
||||
"""ai_frame cover raises RuntimeError when MediaKit is unavailable."""
|
||||
from apps.worker.worker_app.tasks.ai_tasks import run_generate_cover
|
||||
import pytest
|
||||
|
||||
from apps.worker.worker_app.tasks.ai_tasks import run_generate_cover
|
||||
|
||||
with pytest.raises(RuntimeError, match="MediaKit"):
|
||||
run_generate_cover(
|
||||
plan_id="plan-001",
|
||||
|
||||
@@ -174,9 +174,10 @@ class TestAICoverService:
|
||||
mock_client.extract_frames.side_effect = Exception("API error")
|
||||
mock_get_client.return_value = mock_client
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
import pytest
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
|
||||
with pytest.raises(RuntimeError, match="MediaKit"):
|
||||
_call_ai_cover_service(
|
||||
plan_id="plan-123",
|
||||
@@ -187,9 +188,10 @@ class TestAICoverService:
|
||||
|
||||
def test_call_ai_cover_without_video_url_raises(self):
|
||||
"""没有视频 URL 时抛出 RuntimeError(不再降级到 stub)."""
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
import pytest
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
|
||||
with pytest.raises(RuntimeError, match="MediaKit"):
|
||||
_call_ai_cover_service(
|
||||
plan_id="plan-123",
|
||||
@@ -234,9 +236,10 @@ class TestAICoverService:
|
||||
mock_client.is_available = False
|
||||
mock_get_client.return_value = mock_client
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
import pytest
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
|
||||
with pytest.raises(RuntimeError, match="MediaKit"):
|
||||
_call_ai_cover_service(
|
||||
plan_id="plan-123",
|
||||
@@ -253,9 +256,10 @@ class TestAICoverService:
|
||||
mock_client.extract_frames.return_value = []
|
||||
mock_get_client.return_value = mock_client
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
import pytest
|
||||
|
||||
from packages.shared.ai_service import _call_ai_cover_service
|
||||
|
||||
with pytest.raises(RuntimeError, match="MediaKit"):
|
||||
_call_ai_cover_service(
|
||||
plan_id="plan-123",
|
||||
|
||||
Reference in New Issue
Block a user