From 44728c0e01f866ed508fd1312c5487cc2326c13a Mon Sep 17 00:00:00 2001 From: umsangdon Date: Wed, 18 Nov 2026 02:06:47 +0900 Subject: [PATCH] =?UTF-8?q?test(855-M):=20826-1=20M01=20=EA=B0=92=20?= =?UTF-8?q?=EB=B0=94=EB=80=9C=20=EC=8B=9C=ED=97=98=20=E2=80=94=20=EC=98=9B?= =?UTF-8?q?=20=EA=BC=B4=20=EA=B2=AC=EB=B3=B8=20=EB=8C=80=EC=8B=A0=20?= =?UTF-8?q?=EC=88=98=EC=8B=9D=20=EC=82=AC=EB=B3=B8=20=EC=9E=88=EB=8A=94=20?= =?UTF-8?q?SK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 까닭: 2-C1 뒤 옛 칸(더한줄)으로 고치고 사본을 뗀 SK = 「못 셈 + 까닭」 → 기준금액 None - 견본을 화면이 만드는 새 꼴(바탕 로직 PCT · 수식 사본)로 · 바꾸는 M01 인력 = 바탕 줄 보통인부(LB000002) - 뜻 그대로: 개인 층 SK 목록 기준금액이 M01 값 바뀜 뒤 다시 셈됨(자동 따라옴) - 옛 꼴 만드는 도우미 `_unfreeze` 걷음(부르는 곳 0) Co-Authored-By: Claude Opus 5.5 --- resources/tester/test_826_1_layer_index.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/resources/tester/test_826_1_layer_index.py b/resources/tester/test_826_1_layer_index.py index c285e2302..4953b8a38 100644 --- a/resources/tester/test_826_1_layer_index.py +++ b/resources/tester/test_826_1_layer_index.py @@ -18,6 +18,7 @@ from resources.tester.test_m02_labor_ref import COMPANY, world # noqa: F401 — PCT = "GC001109" # 원/㎡ · 인력 둘 + 덧줄 % WAGE = "LB000001" +PCT_WAGE = "LB000002" # 보통인부 — PCT 바탕 줄 LIB = ("sangeun", "precombo", "labor") @@ -111,13 +112,6 @@ def test_same_and_no_reads_when_stamps_same(fresh, reads): assert company[0]["쓰는곳수"] == 1 -def _unfreeze(folder, key): - """옛 꼴(사본 뗌) — M01 을 지금 값으로 셈(사본 있으면 만든 때 값 그대로).""" - doc = json.loads(layers.template_path(folder, "sangeun", key).read_bytes()) - old = {k: v for k, v in doc.items() if k not in ("사본", "수식", "M01판", "바탕판")} - layers.write_template(folder, "sangeun", key, old) - - def test_edit_delete_add_and_dep_change(fresh, reads): up, a, b, sc = _shelf(fresh) mine = fresh["personal"] @@ -162,13 +156,12 @@ def test_m01_change_recounts_amount(fresh, tmp_path, monkeypatch): shutil.copytree(Path(m01.FOLDER) / "기계", copy / "기계") # 기계 = 폴더(826-2) monkeypatch.setattr(m01, "FOLDER", copy) mine = fresh["personal"] - a = _sk(mine, "가", [_wage_line()]) - _unfreeze(mine, a) + a = _sk(mine, "가") # 수식 사본 있는 SK — 개인 층 = M01 자동 따라옴(836-2) one = next(r for r in _same(mine) if r["이름"] == a)["기준금액"] assert one is not None wages = json.loads((copy / "인력.json").read_text(encoding="utf-8")) for row in wages["줄"]: - if row.get("키") == WAGE: + if row.get("키") == PCT_WAGE: row["값"] = float(row["값"]) * 2 (copy / "인력.json").write_text(json.dumps(wages, ensure_ascii=False), encoding="utf-8") two = next(r for r in _same(mine) if r["이름"] == a)["기준금액"]