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:
@@ -14,9 +14,9 @@ from docx import Document
|
||||
from genesis.parsers.word_template_parser import WordTemplateParser
|
||||
from genesis.writer.template_mapper import map_template
|
||||
|
||||
_SAMPLES = Path(r"D:\00_project\Genesis\samples")
|
||||
_JA = _SAMPLES / "概要設計書テンプレート.docx"
|
||||
_ZH = _SAMPLES / "概要设计书模板_中文.docx"
|
||||
_SAMPLES = Path(__file__).resolve().parents[1] / "sample"
|
||||
_JA = _SAMPLES / "template_design_ja.docx"
|
||||
_ZH = _SAMPLES / "template_design_zh.docx"
|
||||
|
||||
|
||||
EXPECTED_ANCHORS = [
|
||||
@@ -27,9 +27,9 @@ EXPECTED_ANCHORS = [
|
||||
|
||||
@pytest.fixture
|
||||
def zh_template(tmp_path):
|
||||
"""生成 zh 模板到临时目录并返回路径(不污染 samples/)。"""
|
||||
"""生成 zh 模板到临时目录并返回路径(不污染 sample/)。"""
|
||||
from scripts.make_zh_template import build_zh_template
|
||||
dst = tmp_path / "概要设计书模板_中文.docx"
|
||||
dst = tmp_path / "template_design_zh.docx"
|
||||
build_zh_template(str(_JA), str(dst))
|
||||
return dst
|
||||
|
||||
|
||||
Reference in New Issue
Block a user