Files
Aislo/resources/tester/helper_m02_master_sample.py
T
eomsangdonandClaude Opus 5.5 61d2ed5997 refactor(M02): 재료산출 시트 지움 — 종류 material · 재료번 SM · 좌측 줄 · 집계표 「재료산출」 줄 · 카드 · 전체 편집 · 복사 길 · 프로젝트 복사본 「재료」 · 고르기 모달 · 시스템 층 · fixture · 시험
- 새 프로젝트 씨앗(KINDS)에서도 빠짐 · 새 열은 구조물 도면 · 면적산출만 만듦
- storage 층(회사 · 개인 · 프로젝트) material/ 파일은 지우지 않음(읽기만 끊음)
- 장부 재료번 칸은 다음 집계표 [저장] 때 빠짐

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NPJGtfXo6GMbcpiboQC4uK
2026-10-04 17:56:49 +09:00

28 lines
965 B
Python

"""시험 안 마스터 견본(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"))