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:
@@ -39,7 +39,7 @@ class _FlakyEngine:
|
||||
|
||||
|
||||
def _ss() -> StructuredSource:
|
||||
template = Path("samples/phase5-slice/template.docx")
|
||||
template = Path("sample/phase5-slice/template.docx")
|
||||
if not template.exists():
|
||||
pytest.skip("样本模板缺失,跳过")
|
||||
parsed = WordTemplateParser().parse(str(template))
|
||||
@@ -54,7 +54,7 @@ def test_generate_recovers_stochastic_single_chapter_failure(tmp_path):
|
||||
# chapter_attempts=3,内部 max_retries=2 → 单章最多约 3×2 次调用
|
||||
contents = WriteOrchestrator().generate(
|
||||
_ss(), str(out), samples_dir="nonexistent_dir_xyz",
|
||||
engine=engine, template_path=str(Path("samples/phase5-slice/template.docx")),
|
||||
engine=engine, template_path=str(Path("sample/phase5-slice/template.docx")),
|
||||
)
|
||||
assert contents, "应成功产出章节"
|
||||
assert out.is_file()
|
||||
@@ -72,6 +72,6 @@ def test_generate_hard_fails_after_chapter_attempts_exhausted(tmp_path):
|
||||
with pytest.raises(WriterGenerationError):
|
||||
WriteOrchestrator().generate(
|
||||
_ss(), str(out), samples_dir="nonexistent_dir_xyz",
|
||||
engine=AlwaysFail(0), template_path=str(Path("samples/phase5-slice/template.docx")),
|
||||
engine=AlwaysFail(0), template_path=str(Path("sample/phase5-slice/template.docx")),
|
||||
chapter_attempts=1,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user