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