fix: remove duplicate pytest imports for ruff F811
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m0s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m28s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m34s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 3m5s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m25s
CI/CD Pipeline / Validate - Code Quality (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Staging API Image (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (push) Failing after 856h50m32s
CI/CD Pipeline / PR Build API Image (push) Failing after 856h50m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 856h50m33s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 856h50m34s
CI/CD Pipeline / PR Build Web Image (push) Failing after 857h24m2s

This commit is contained in:
CI Bot
2026-08-11 22:36:19 +08:00
parent 43fa4a5575
commit b174a792b2
-4
View File
@@ -174,7 +174,6 @@ class TestAICoverService:
mock_client.extract_frames.side_effect = Exception("API error")
mock_get_client.return_value = mock_client
import pytest
from packages.shared.ai_service import _call_ai_cover_service
@@ -188,7 +187,6 @@ class TestAICoverService:
def test_call_ai_cover_without_video_url_raises(self):
"""没有视频 URL 时抛出 RuntimeError(不再降级到 stub)."""
import pytest
from packages.shared.ai_service import _call_ai_cover_service
@@ -236,7 +234,6 @@ class TestAICoverService:
mock_client.is_available = False
mock_get_client.return_value = mock_client
import pytest
from packages.shared.ai_service import _call_ai_cover_service
@@ -256,7 +253,6 @@ class TestAICoverService:
mock_client.extract_frames.return_value = []
mock_get_client.return_value = mock_client
import pytest
from packages.shared.ai_service import _call_ai_cover_service