refactor: 移除 doc 和 ppt reader 支持
移除对旧版 .doc 和 .ppt 格式的支持,以简化项目架构和减少维护负担。 变更内容: - 删除 scripts/readers/doc/ 目录 - 删除 scripts/readers/ppt/ 目录 - 从 readers/__init__.py 中移除 DocReader 和 PptReader - 从 utils/file_detection.py 中移除 is_valid_doc 和 is_valid_ppt - 从 config.py 中移除 doc 和 ppt 依赖配置 - 从 advice_generator.py 中移除相关映射 - 更新 CLI 帮助文档 - 更新 README.md 文档 - 删除相关测试用例 - 删除相关规范文档
This commit is contained in:
@@ -38,13 +38,6 @@ class TestCLIAdviceOption:
|
||||
output = stdout + stderr
|
||||
assert "无法识别" in output or "错误" in output
|
||||
|
||||
def test_advice_option_doc(self, cli_runner):
|
||||
"""测试 --advice 选项对 DOC 文件。"""
|
||||
stdout, stderr, exit_code = cli_runner(["test.doc", "--advice"])
|
||||
|
||||
assert exit_code == 0
|
||||
assert "文件类型: DOC" in stdout
|
||||
|
||||
def test_advice_option_xls(self, cli_runner):
|
||||
"""测试 --advice 选项对 XLS 文件。"""
|
||||
stdout, stderr, exit_code = cli_runner(["test.xls", "--advice"])
|
||||
@@ -52,13 +45,6 @@ class TestCLIAdviceOption:
|
||||
assert exit_code == 0
|
||||
assert "文件类型: XLS" in stdout
|
||||
|
||||
def test_advice_option_ppt(self, cli_runner):
|
||||
"""测试 --advice 选项对 PPT 文件。"""
|
||||
stdout, stderr, exit_code = cli_runner(["test.ppt", "--advice"])
|
||||
|
||||
assert exit_code == 0
|
||||
assert "文件类型: PPT" in stdout
|
||||
|
||||
|
||||
class TestCLIDefaultOutput:
|
||||
"""测试 CLI 默认输出功能。"""
|
||||
|
||||
Reference in New Issue
Block a user