test(regulatory-info-package): 覆盖材料包主链路
This commit is contained in:
16
tests/test_regulatory_info_package_instruction_extract.py
Normal file
16
tests/test_regulatory_info_package_instruction_extract.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pathlib import Path
|
||||
|
||||
from review_agent.regulatory_info_package.services.instruction_extract import parse_instruction_docx
|
||||
|
||||
|
||||
def test_parse_instruction_docx_extracts_paragraphs_and_tables():
|
||||
path = Path("docs/0.原始材料/目标产品说明书.docx")
|
||||
|
||||
result = parse_instruction_docx(path)
|
||||
|
||||
assert result.source_file_name == "目标产品说明书.docx"
|
||||
assert result.paragraphs
|
||||
assert isinstance(result.sections, dict)
|
||||
assert isinstance(result.tables, list)
|
||||
assert result.front_text
|
||||
|
||||
Reference in New Issue
Block a user