diff --git a/resources/tester/test_717_4_sangeun_pick.py b/resources/tester/test_717_4_sangeun_pick.py index 445a1933c..8422912da 100644 --- a/resources/tester/test_717_4_sangeun_pick.py +++ b/resources/tester/test_717_4_sangeun_pick.py @@ -71,14 +71,14 @@ def test_list_amount_and_labor_line_holds_upper_sk(world): # noqa: F811 }, )["이름"] line = store.read("precombo", sc)["문서"]["담은로직"][0] - saved, inner = line["본뜬"], [line["수량"]] + saved, inner = line["참조"], [line["수량"]] outer = {"담은로직": [{"참조": {**MINE, "키": sc}, "수량": {"손": 1}}]} got = labor.calc(outer, {}) fed = labor.calc(outer, {f"{refs.ref_id({**MINE, '키': sc})}#0": 3}) direct = labor.calc({"담은로직": [{"참조": {**COMPANY, "키": sk}, "수량": {"손": 3}}]}, {}) - # 740-1 — 회사 SK = 로직 줄 + 패치로 펼쳐 담음 · 출처 = 본뜬 - assert {k: saved[k] for k in ("층", "주인", "키")} == {**COMPANY, "키": sk} - assert line["로직"] and "참조" not in line + # 811-1 — 일위대가 안 SK 줄 = 참조 한 행 그대로(펼치지 않음 · 본뜬 없음) + assert saved == {**COMPANY, "키": sk} + assert "로직" not in line and "본뜬" not in line # 742-1 — 일위대가 안 줄 수량 = 저장(사용자 입력) · 쓰는 자리 알약이 이어지면 그 값 assert inner == [{"손": 3}] assert got["반영합"]["계"] == pytest.approx(one * 3, abs=1) # 저장 수량 3 diff --git a/resources/tester/test_721_find_pick.py b/resources/tester/test_721_find_pick.py index bdec67e96..f0004d1df 100644 --- a/resources/tester/test_721_find_pick.py +++ b/resources/tester/test_721_find_pick.py @@ -128,7 +128,8 @@ def test_736_2_빠진_길_둘_신규_자재_기계_탭(): """736-2 — 개인 층 재료 고름 머리 [신규 자재] · 엑셀 연결 = 줄 갈래대로 탭(노임 인력 · 기계 기계 · 자재 재료).""" find = _text(M02 / "M02_MasterTemplete_Find_Pick.ts") assert 'opt.layer === "personal" && !!opt.material && ok("material")' in find - assert "openNewMaterial(opt.owner" in find and "actions: [newMat]" in find + assert "openNewMaterial(opt.owner" in find and "headBtns = canNew ? [newMat] : []" in find + assert "{ actions: headBtns }" in find # 머리 단추 있을 때만 모달 머리에 assert "machine?: (e: M01Element) => void;" in find assert 'opt.machine && ok("machine")' in find pick = _text(M02 / "M02_Material_Pick.ts") diff --git a/resources/tester/test_m02_structure_panel.py b/resources/tester/test_m02_structure_panel.py index 271ed7233..cf560b39b 100644 --- a/resources/tester/test_m02_structure_panel.py +++ b/resources/tester/test_m02_structure_panel.py @@ -220,7 +220,7 @@ def test_상세_화면_돌아가기는_집계표로_그_열_고른_채(): main = _text(MAIN) # M01 꼴 — 제목 앞(39-5) · 105-4 상세 이동 묶음(nav) · 49-7 [?] 칸(helpSlot)이 그 뒤 assert re.search( - r"children: \[\s*back,\s*title,\s*nav\.root,\s*helpSlot,\s*slot,\s*reload,\s*actions\.reset,\s*actions\.del,\s*save,", + r"children: \[\s*back,\s*title,\s*nav\.root,\s*helpSlot,\s*slot,\s*reload,\s*actions\.reset,\s*actions\.del,\s*actions\.undo,\s*save,", main, ) assert "!(sel.kind in NUMBER_FIELD)" in main # 구조물 도면 · 일위대가 · 면적산출만