Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01STqEqztUthVFBmEP18wBSz
31 lines
1.3 KiB
Python
31 lines
1.3 KiB
Python
"""183-2 자재단가대비표 머리 — 견적 「면」 뺌 · 견적서 = 견적 아래 · 다른 출처 「출처」 열은 185-4 에서 호버로.
|
|
|
|
소스 시험(열 정의 · 고칠 칸) — 셈 · 저장(`quote_page` 남음)은 안 바뀜(test_166_4).
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
SRC = (ROOT / "B09_Estimation" / "B09_Estimation_UI_Tabs_Base.ts").read_text(encoding="utf-8")
|
|
|
|
|
|
def _compare() -> str:
|
|
start = SRC.index("export const buildCompare")
|
|
return SRC[start : SRC.index("export const buildMaterial")]
|
|
|
|
|
|
def test_견적은_단가_견적서_그_밖은_단가_하나():
|
|
# 185-4 — 출처 열 없앰(출처 뜻 = 단가 칸 호버 · test_185_4)
|
|
body = _compare()
|
|
assert '[money(`p:${s}`, "단가", [s]), text("files", "견적서", 72, [s])]' in body
|
|
assert ': [money(`p:${s}`, "단가", [s])],' in body
|
|
assert "g:${s}" not in body and '"출처", 64' not in body
|
|
assert '"면"' not in body # 면 머리 없음
|
|
assert body.count('text("files", "견적서"') == 1 # 맨 끝 견적서 열 지움
|
|
|
|
|
|
def test_견적_면_수기_칸_없앰():
|
|
body = _compare()
|
|
assert 'key === "g:견적"' not in body and "quote_page" not in body
|
|
assert "견적 단가 = 수기 입력" in body and "견적 단가 · 면" not in body
|