feat: 补齐Word导出报告结构化字段口径
This commit is contained in:
@@ -497,6 +497,11 @@ def test_generate_registration_export_creates_real_docx_file(db, tmp_path, setti
|
||||
assert report["output_type"] == "registration_word_export_report"
|
||||
assert report["can_export_formally"] is False
|
||||
assert report["export_status"] == "draft_only"
|
||||
assert report["filled_fields"][0]["field_name"] == "产品名称"
|
||||
assert report["filled_fields"][0]["fill_status"] == "filled"
|
||||
assert report["blocked_fields"][0]["block_reason"] == "待人工复核"
|
||||
assert report["output_file"]["output_version"] == "draft"
|
||||
assert report["output_file"]["generated_at"]
|
||||
assert report["download_url"].startswith("/media/exports/")
|
||||
assert export_path.exists()
|
||||
with zipfile.ZipFile(export_path) as archive:
|
||||
|
||||
Reference in New Issue
Block a user