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)