From ab81c0115ae4e91d7ceff797f2bcc30c3f6fc0f4 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Thu, 27 Aug 2026 16:53:21 +0000 Subject: [PATCH] style: auto-format with black + isort + prettier [skip ci-format-check] --- tests/unit/test_mediakit_smart_clips.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/test_mediakit_smart_clips.py b/tests/unit/test_mediakit_smart_clips.py index f234dd184..69c1351c9 100644 --- a/tests/unit/test_mediakit_smart_clips.py +++ b/tests/unit/test_mediakit_smart_clips.py @@ -577,12 +577,10 @@ class TestFromAssetsByTemplateSegments: assert exc_info.value.status_code == 400 mock_plan_svc.replace_all_clips_transactional.assert_not_called() - def test_empty_asset_ids_raises_400(self): """asset_ids 为空列表时返回 400(defense-in-depth,schema 层也有 min_length=1)。""" - from fastapi import HTTPException - from app.api.routes.templates_editor.clips import create_clips_from_assets_editor + from fastapi import HTTPException segments = [(0, 3.0, 5.0)] mock_tpl_svc = _make_tpl_svc_with_segments(segments)