"""测试所有 DOC Readers 的一致性。""" import pytest from readers.doc import markitdown, pypandoc class TestDocReadersConsistency: """验证 DOC Readers 模块结构正确。""" def test_parsers_importable(self): """测试所有 parser 模块可以正确导入。""" # 验证模块导入成功 assert markitdown is not None assert pypandoc is not None assert hasattr(markitdown, 'parse') assert hasattr(pypandoc, 'parse') def test_parser_functions_callable(self): """测试 parse 函数是可调用的。""" assert callable(markitdown.parse) assert callable(pypandoc.parse)