chore(assets): 参赛提交规范红线修复(ASCII 化 + 相对路径)

按《参赛成果物提交规范·赛道一》§6 红线:
- samples/ 目录改名 sample/(git mv,保留历史)
- 10 个中日文样本文件 + docs 参赛手册 PDF 重命名为 ASCII
  (requirements_*/template_*/rules_*/contestant-handbook.pdf)
- tests/test_zh_template.py 硬编码绝对路径 D:\00_project\Genesis 改为相对路径
- 全局更新 21 个活动文件引用;历史日志/审查文档不改(追加说明记录)
全量 pytest 431 passed / 99.15%
This commit is contained in:
lhl
2026-08-26 14:15:52 +08:00
parent 1925ef7239
commit becd3e1f57
398 changed files with 286 additions and 72 deletions
+12 -12
View File
@@ -7,7 +7,7 @@ from genesis.parsers.rule_doc_parser import RuleDocParser
from genesis.parsers.source_aggregator import SourceParser
from genesis.parsers.word_template_parser import WordTemplateParser
SAMPLES = Path(__file__).resolve().parents[1] / "samples"
SAMPLES = Path(__file__).resolve().parents[1] / "sample"
def _d(name: str) -> Path:
@@ -19,7 +19,7 @@ def _x(name: str) -> Path:
def test_new_dev_sample_has_tables():
p = _x("要件定義_新規開発.xlsx")
p = _x("requirements_newdev.xlsx")
if not p.exists():
pytest.skip("样本缺失")
result = ExcelParser().parse(p)
@@ -30,7 +30,7 @@ def test_new_dev_sample_has_tables():
def test_additional_modification_has_tables():
p = _x("要件定義_追加改修.xlsx")
p = _x("requirements_enhancement.xlsx")
if not p.exists():
pytest.skip("样本缺失")
result = ExcelParser().parse(p)
@@ -39,7 +39,7 @@ def test_additional_modification_has_tables():
def test_free_text_sample_detected():
p = _x("要件定義_自由記述.xlsx")
p = _x("requirements_freetext.xlsx")
if not p.exists():
pytest.skip("样本缺失")
result = ExcelParser().parse(p)
@@ -47,7 +47,7 @@ def test_free_text_sample_detected():
def test_mixed_sample_segments_detected():
p = _x("要件定義_混合型.xlsx")
p = _x("requirements_mixed.xlsx")
if not p.exists():
pytest.skip("样本缺失")
result = ExcelParser().parse(p)
@@ -68,7 +68,7 @@ def test_mixed_sample_segments_detected():
def test_word_template_sample_chapters_and_placeholders():
p = _d("概要設計書テンプレート.docx")
p = _d("template_design_ja.docx")
if not p.exists():
pytest.skip("样本缺失")
result = WordTemplateParser().parse(p)
@@ -85,7 +85,7 @@ def test_word_template_sample_chapters_and_placeholders():
def test_rule_doc_sample_markdown_and_category():
p = _d("記入規則.docx")
p = _d("rules_entry_ja.docx")
if not p.exists():
pytest.skip("样本缺失")
result = RuleDocParser().parse(p, category="write")
@@ -96,7 +96,7 @@ def test_rule_doc_sample_markdown_and_category():
def test_write_instruction_sample_category_write():
p = _d("概要設計做成説明書.docx")
p = _d("rules_design_ja.docx")
if not p.exists():
pytest.skip("样本缺失")
result = RuleDocParser().parse(p, category="write")
@@ -105,10 +105,10 @@ def test_write_instruction_sample_category_write():
def test_source_parser_full_sample_assembly():
xlsx = _x("要件定義_新規開発.xlsx")
template = _d("概要設計書テンプレート.docx")
rule = _d("記入規則.docx")
instr = _d("概要設計做成説明書.docx")
xlsx = _x("requirements_newdev.xlsx")
template = _d("template_design_ja.docx")
rule = _d("rules_entry_ja.docx")
instr = _d("rules_design_ja.docx")
if not all(p.exists() for p in [xlsx, template, rule, instr]):
pytest.skip("样本缺失")
result = SourceParser().parse(