refactor: 调整模块导入路径,简化引用结构

- 更新 openspec/config.yaml 中 git 任务相关说明
- 将 scripts.core.* 改为 core.*,scripts.readers.* 改为 readers.*
- 优化 lyxy_document_reader.py 中 sys.path 设置方式
- 同步更新所有测试文件的导入路径
This commit is contained in:
2026-03-09 15:44:51 +08:00
parent 6e75c99d5b
commit 9daff73589
63 changed files with 103 additions and 76 deletions

View File

@@ -1,7 +1,7 @@
"""测试所有 PDF Readers 的一致性。"""
import pytest
from scripts.readers.pdf import (
from readers.pdf import (
docling,
docling_ocr,
markitdown,

View File

@@ -1,7 +1,7 @@
"""测试 Docling OCR PDF Reader 的解析功能。"""
import pytest
from scripts.readers.pdf import docling_ocr
from readers.pdf import docling_ocr
class TestDoclingOcrPdfReaderParse:

View File

@@ -1,7 +1,7 @@
"""测试 Docling PDF Reader 的解析功能。"""
import pytest
from scripts.readers.pdf import docling
from readers.pdf import docling
class TestDoclingPdfReaderParse:

View File

@@ -1,7 +1,7 @@
"""测试 MarkItDown PDF Reader 的解析功能。"""
import pytest
from scripts.readers.pdf import markitdown
from readers.pdf import markitdown
class TestMarkitdownPdfReaderParse:

View File

@@ -2,7 +2,7 @@
import pytest
import os
from scripts.readers.pdf import PdfReader
from readers.pdf import PdfReader
class TestPypdfReaderParse:

View File

@@ -1,7 +1,7 @@
"""测试 Unstructured OCR PDF Reader 的解析功能。"""
import pytest
from scripts.readers.pdf import unstructured_ocr
from readers.pdf import unstructured_ocr
class TestUnstructuredOcrPdfReaderParse:

View File

@@ -1,7 +1,7 @@
"""测试 Unstructured PDF Reader 的解析功能。"""
import pytest
from scripts.readers.pdf import unstructured
from readers.pdf import unstructured
class TestUnstructuredPdfReaderParse: