- Labor.ts · Labor_Tree.ts 지움 · 페이지 · 좌측 이음 · 해시 표시(mark) 지움 - 나무 부품 일위대가 전용 칸(clipKind · maxDepth · item) 지움 - 옛 나무 시험을 새 짜임 검사로 갈음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BVPp2o6Mh2FZJr72yW3ofZ
36 lines
1.5 KiB
Python
36 lines
1.5 KiB
Python
"""좌측 패널 일위대가(PLAN 39-2) — 맨 위 「일위대가 조합」 컨테이너 · 조합 나무 · 둘째 층 단추 벌 지움 ·
|
|
일위대가는 구조물 조합 하위(구조물 도면 → 일위대가 → 면적산출). 글 검사(화면은 ORCA).
|
|
|
|
옛 일위대가 라이브러리 나무 시험(PLAN 27-2b · 30-3 · 30-5)은 나무를 지우며 이 검사로 갈음.
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
M02 = ROOT / "M02_MasterTemplete"
|
|
|
|
|
|
def _text(name: str) -> str:
|
|
return (M02 / name).read_text("utf-8")
|
|
|
|
|
|
def test_일위대가_나무_파일과_이음이_없음():
|
|
assert not (M02 / "M02_MasterTemplete_Labor.ts").exists()
|
|
assert not (M02 / "M02_MasterTemplete_Labor_Tree.ts").exists()
|
|
page = _text("M02_MasterTemplete_UI_Page.ts")
|
|
assert "buildLaborSection" not in page and 'layerBar("일위대가"' not in page
|
|
side = _text("M02_MasterTemplete_UI_Side.ts")
|
|
assert "LaborSection" not in side and "labor?." not in side
|
|
|
|
|
|
def test_나무_부품에_일위대가_전용_칸_없음():
|
|
panel = _text("M02_MasterTemplete_TreePanel.ts")
|
|
for gone in ("maxDepth", "opt.item", "opt.clipKind", "clipKind?:"):
|
|
assert gone not in panel, gone
|
|
|
|
|
|
def test_층_단추는_구조물_조합_한_벌():
|
|
page = _text("M02_MasterTemplete_UI_Page.ts")
|
|
assert page.count('layerBar("') == 1 # 구조물 조합 줄 아래 하나
|
|
assert 'layerBar("구조물조합", tree.add, () => void main.openTable(layer)),' in page
|