test(804-4): 단가갱신 시험을 836-2 이후 꼴로 — 개인 층 = 자동 따라옴 · 프로젝트 층 = [단가 갱신]
- 낡은 시험(코드 흠 아님): 개인 층은 M01 단가가 열 때 이미 따라와 바뀐자원이 비는 것이 지금 꼴 - 개인 층 단언 = 바뀐자원 없음 · 후 계가 이미 오름 / 프로젝트 층(사본 복사) 단언 = 바뀐자원 · 후 계 · 문서 그대로(기존 뜻) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user