diff --git a/resources/tester/test_804_4_line_stack_take.py b/resources/tester/test_804_4_line_stack_take.py index 6ada98c13..f129f2fae 100644 --- a/resources/tester/test_804_4_line_stack_take.py +++ b/resources/tester/test_804_4_line_stack_take.py @@ -12,6 +12,7 @@ from __future__ import annotations import json +import shutil from decimal import Decimal from pathlib import Path @@ -195,10 +196,16 @@ def test_권한_저장_단가갱신(world, monkeypatch): g = _into(read["문서"], _take(me, _rid(sc))) with store.at(me): again = _norm(path.save(other, {"문서": g["문서"], "판": read["판"]})) + proj = me.parent / "p804" / "templates" # 프로젝트 층 사본 = 자동 따라옴 없음(836-2) + (proj / "sangeun").mkdir(parents=True) + shutil.copy(me / "sangeun" / f"{other}.json", proj / "sangeun" / f"{other}.json") row = dict(_live().get(LB)) row["값"] = row["값"] + 1000 _fake(monkeypatch, [row]) - with store.at(me): + with store.at(me): # 개인 층 = M01 자동 따라옴 — 금액이 이미 올라 있어 갈 바뀐자원 없음 + auto = _norm(path.preview(other, {"할일": "단가갱신"})) + assert not auto.get("바뀐자원") and auto["후"]["계"] > again["셈"]["계"] + 1000 * 0.3 + with store.at(proj): # 프로젝트 층 = [단가 갱신] 으로만 따라감 got = _norm(path.preview(other, {"할일": "단가갱신"})) assert any(x["키"] == LB for x in got["바뀐자원"]) assert (