From e9b85d962bd2d4bee3b84563e09d303a232e0db7 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Thu, 10 Sep 2026 11:26:21 +0000 Subject: [PATCH] style: auto-format with black + isort + prettier [skip ci-format-check] --- apps/api/app/tasks/lipsync_tts.py | 2 +- tests/unit/test_lipsync_speed_optimization.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/app/tasks/lipsync_tts.py b/apps/api/app/tasks/lipsync_tts.py index 356d10ce8..4af2ce5b0 100644 --- a/apps/api/app/tasks/lipsync_tts.py +++ b/apps/api/app/tasks/lipsync_tts.py @@ -46,8 +46,8 @@ def tts_synthesize_and_submit( from packages.adapters.sqlalchemy_impl.database import SessionLocal from packages.adapters.sqlalchemy_impl.models import LipsyncJobModel from packages.application.cosyvoice_service import CosyVoiceError, CosyVoiceService - from packages.shared.url_security import safe_download_bytes from packages.shared.storage import get_shared_storage_service + from packages.shared.url_security import safe_download_bytes db: DBSession = SessionLocal() try: diff --git a/tests/unit/test_lipsync_speed_optimization.py b/tests/unit/test_lipsync_speed_optimization.py index 852a8e355..a6619bcb9 100644 --- a/tests/unit/test_lipsync_speed_optimization.py +++ b/tests/unit/test_lipsync_speed_optimization.py @@ -470,6 +470,7 @@ class TestTtsSynthesizeAndSubmit: def test_tts_cosyvoice_error_marks_failed(self): """CosyVoiceError → 标记 failed,error_code=TTSSynthesisFailed.""" from app.tasks.lipsync_tts import tts_synthesize_and_submit + from packages.application.cosyvoice_service import CosyVoiceError job = _make_fake_job(status="tts_processing")