배정 프로젝트 화면: 돌쌓기(찰) 장에서 봉화 엑셀 읽기 → 「호표 45개 · 구성 줄 209줄」 → 제6호표 기슭막이(깬잡석,찰쌓기) H=2.0m 구성 9줄 넣기 → 목록 「개인 · [고정형] …」 · [내 것 지우기]로 되돌림(목록 기본 한 줄) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016VBGFXB9AbJBwXP19z75Qq
27 lines
1.2 KiB
Python
27 lines
1.2 KiB
Python
"""라이브러리 칸의 [STmate 엑셀에서 뽑기] — 읽은 수를 보이고 묻고 넣는 두 걸음(2026-09-14 브레인 판정).
|
|
|
|
⚠ 읽기 전에 넣기가 열리면 안 됨 · 넣기 전에 호표 수·구성 줄 수·덮어씀을 묻는 확인이 있어야 함 ·
|
|
넣기는 **파일을 다시 보냄**(서버가 다시 읽음 — 화면이 읽은 줄을 보내지 않음).
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
UI = ROOT / "B08_Quantity" / "B08_Quantity_UI_StructureSheet_Stmate.ts"
|
|
PANEL = (ROOT / "B08_Quantity" / "B08_Quantity_UI_StructureSheet_Library.ts").read_text(
|
|
encoding="utf-8"
|
|
)
|
|
|
|
|
|
def test_라이브러리_칸에_뽑기_칸이_붙는다() -> None:
|
|
assert "buildStmatePanel(" in PANEL
|
|
|
|
|
|
def test_읽고_수를_보이고_묻고_파일을_다시_보내_넣는다() -> None:
|
|
ui = UI.read_text(encoding="utf-8")
|
|
assert "/stmate/read" in ui and "/stmate/save" in ui
|
|
assert 'form.append("file"' in ui and 'form.append("hopyo_no"' in ui
|
|
assert "window.confirm(" in ui and "counts.hopyo" in ui and "counts.rows" in ui
|
|
assert "put.hidden = true" in ui # 읽기 전에는 넣기 단추가 숨음
|
|
assert "rows:" not in ui.split("/stmate/save")[1][:400] # 줄을 보내지 않음
|