"""시험 안 마스터 견본(PLAN 26-5a) — 초기화 전 마스터 층을 줄여 얼린 것 (`fixtures/m02_master_sample`). 집계표(바인딩 열 54) · SS 장부(51 줄) · 자재조합 · 세 파일은 rv · c4 · pp_len · ms 넷(도면 줄임) — 시험은 실제 `resources/master_template` 을 안 읽고 이 견본을 임시 폴더에 복사해 씀. """ from __future__ import annotations import json import shutil from pathlib import Path from typing import Any SAMPLE = Path(__file__).resolve().parent / "fixtures" / "m02_master_sample" TABLE = SAMPLE / "table" / "구조물집계표.json" def copy_master_sample(target: Path) -> Path: """견본을 `target` 에 복사(없으면 만듦) · `target` 을 돌려줌.""" shutil.copytree(SAMPLE, target, dirs_exist_ok=True) return target def sample_table() -> dict[str, Any]: """견본 구조물집계표 문서(새 dict).""" return json.loads(TABLE.read_text(encoding="utf-8"))