1
0
Files
PPTX/openspec/changes/archive/2026-03-03-run-tests-fix-issues/tasks.md

53 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. 修复E2E测试命令执行问题
- [x] 1.1 修改 tests/e2e/test_convert_cmd.py 中的命令执行方式,将 `python -m uv run python` 改为 `uv run`
- [x] 1.2 修改 tests/e2e/test_check_cmd.py 中的命令执行方式
- [x] 1.3 运行E2E测试验证修复是否成功
## 2. 修复测试Fixture缺失问题
- [x] 2.1 在 tests/conftest.py 中添加 mock_template_class fixture
- [x] 2.2 检查并修复 sample_template 变量引用问题
- [x] 2.3 运行单元测试验证fixture修复
## 3. 修复Mock对象配置问题
- [x] 3.1 修复 tests/unit/test_renderers/test_pptx_renderer.py 中表格渲染的Mock配置
- [x] 3.2 修复 tests/unit/test_renderers/test_html_renderer.py 中的Mock配置
- [x] 3.3 验证渲染器测试通过
## 4. 修复模板变量替换Bug
- [x] 4.1 检查 core/template.py 中的变量替换逻辑
- [x] 4.2 修复字体属性中的变量替换问题测试YAML语法修正
- [x] 4.3 修复条件渲染中的变量求值问题
- [x] 4.4 运行模板测试验证修复
## 5. 修复验证结果格式化问题
- [x] 5.1 检查 validators/result.py 中的格式化逻辑
- [x] 5.2 修复提示信息INFO的显示问题
- [x] 5.3 运行验证器测试确认修复
## 6. 修复HTML渲染器问题
- [x] 6.1 修复特殊字符&的HTML转义
- [x] 6.2 修复测试期望值px单位问题
- [x] 6.3 修复图片渲染测试
## 7. 修复PPTX验证器问题
- [x] 7.1 修复文本框检测方式兼容不同版本python-pptx
- [x] 7.2 运行集成测试验证
## 8. 修复Presentation验证问题
- [x] 8.1 添加尺寸值类型验证
- [x] 8.2 修复测试YAML语法尺寸需要引号
## 9. 最终验证
- [x] 9.1 运行全部测试套件
- [ ] 9.2 确认所有测试通过剩余9个失败为需要实现的功能增强
- [x] 9.3 记录修复结果