test: add composer and template test suites (43 tests, all passing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 09:38:06 +08:00
co-authored by Claude Sonnet 4.6
parent 597da6744d
commit d02da738c6
3 changed files with 595 additions and 10 deletions
+10 -10
View File
@@ -473,19 +473,19 @@
任务:
- [ ] 编写 `tests/test_composer.py`
- [ ] 编写 `tests/test_templates.py`
- [ ] 测试透明 PNG 合成
- [ ] 测试缩放参数
- [ ] 测试旋转中心
- [ ] 测试文件扫描
- [ ] 测试模板读写
- [ ] 测试批量任务生成
- [x] 编写 `tests/test_composer.py`
- [x] 编写 `tests/test_templates.py`
- [x] 测试透明 PNG 合成
- [x] 测试缩放参数
- [x] 测试旋转中心
- [x] 测试文件扫描
- [x] 测试模板读写
- [x] 测试批量任务生成
验收:
- [ ] 核心逻辑测试不依赖 GUI
- [ ] 测试可在 Python 3.7 环境运行
- [x] 核心逻辑测试不依赖 GUI
- [x] 测试可在 Python 3.7 环境运行
## 16. 打包