refactor: 调整模块导入路径,简化引用结构
- 更新 openspec/config.yaml 中 git 任务相关说明 - 将 scripts.core.* 改为 core.*,scripts.readers.* 改为 readers.* - 优化 lyxy_document_reader.py 中 sys.path 设置方式 - 同步更新所有测试文件的导入路径
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""测试所有 PPTX Readers 的一致性。"""
|
||||
|
||||
import pytest
|
||||
from scripts.readers.pptx import (
|
||||
from readers.pptx import (
|
||||
docling,
|
||||
markitdown,
|
||||
native_xml,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""测试 Docling PPTX Reader 的解析功能。"""
|
||||
|
||||
import pytest
|
||||
from scripts.readers.pptx import docling
|
||||
from readers.pptx import docling
|
||||
|
||||
|
||||
class TestDoclingPptxReaderParse:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""测试 MarkItDown PPTX Reader 的解析功能。"""
|
||||
|
||||
import pytest
|
||||
from scripts.readers.pptx import markitdown
|
||||
from readers.pptx import markitdown
|
||||
|
||||
|
||||
class TestMarkitdownPptxReaderParse:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""测试 Native XML PPTX Reader 的解析功能。"""
|
||||
|
||||
import pytest
|
||||
from scripts.readers.pptx import native_xml
|
||||
from readers.pptx import native_xml
|
||||
|
||||
|
||||
class TestNativeXmlPptxReaderParse:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import pytest
|
||||
import os
|
||||
from scripts.readers.pptx import PptxReader
|
||||
from readers.pptx import PptxReader
|
||||
|
||||
|
||||
class TestPythonPptxReaderParse:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""测试 Unstructured PPTX Reader 的解析功能。"""
|
||||
|
||||
import pytest
|
||||
from scripts.readers.pptx import unstructured
|
||||
from readers.pptx import unstructured
|
||||
|
||||
|
||||
class TestUnstructuredPptxReaderParse:
|
||||
|
||||
Reference in New Issue
Block a user