Initial lip-sync service with command backend

This commit is contained in:
cat-shark
2026-06-20 17:16:11 +08:00
commit 8c6a222c38
25 changed files with 1226 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Tests
当前使用 Python 标准库 `unittest`,无需额外测试依赖。
```powershell
uv run python -m unittest discover -s tests
```
已覆盖:
1. `command` 后端模板渲染。
2. 未知模板变量报错。
3. 非零退出码的 stderr 尾部诊断与敏感字段脱敏。
4. `command` 后端成功产出非空输出文件。
后续建议增加:
1. `normalize_audio_path` / `normalize_video_path` payload 解析测试。
2. `copy_video``ffmpeg_mux` 集成测试。
3. Gradio `/process_single` 兼容测试。
不要提交大音频/视频素材。测试素材可放在本机 `C:\test` 或通过环境变量指定。