시험 test_738_m02_entry_personal 추가 · test_m02_precombo_scope 한 건(삭제 확인 글 찾기)은 이 일과 무관한 기존 실패 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
19 lines
847 B
Python
19 lines
847 B
Python
"""738-1 — M02 첫 화면: 단가산출 · 일위대가로 들어오면 그 컨테이너 기본 층 목록표, 그 밖은 집계표."""
|
|
|
|
from pathlib import Path
|
|
|
|
PAGE = Path("M02_MasterTemplete/M02_MasterTemplete_UI_Page.ts").read_text(encoding="utf-8")
|
|
|
|
|
|
def test_첫_화면은_들어온_컨테이너의_층_목록표():
|
|
start = PAGE.index("void main.open(\n entry.open")
|
|
block = PAGE[start : start + 220]
|
|
assert 'entry.open === "단가산출"' in block and "sangeunList(sk)" in block
|
|
assert 'entry.open === "일위대가조합"' in block and "precomboList(pre)" in block
|
|
assert "home()" in block # 구조물 조합 · 도면 = 집계표 그대로
|
|
|
|
|
|
def test_단가산출_층_기본은_개인():
|
|
assert 'let sk = preScope("personal")' in PAGE
|
|
assert "let pre = preScope(entry.pre ?? defaultRoot(user))" in PAGE
|