test(843-1): 717-1 저장 안 한 줄 셈 시험 낡은 칸 고침 — 줄을 화면이 받는 꼴(M01 /logic _num)로 보냄

- 깨진 때 = 794-2b(e1a1db779) 로직 줄 칸 「개정」 [2026] — 시험이 store.logic 날 줄(Decimal)을 그대로 JSON 으로 보내 TypeError
- 코드 흠 아님 — 화면은 M01 /logic(_call → _num) 으로 받은 수 꼴 줄을 보냄 · 셈 · 금액 그대로

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 18:49:00 +09:00
co-authored by Claude Opus 5.5
parent 8709dc9ffd
commit ef19323403
+4 -1
View File
@@ -15,6 +15,7 @@ from fastapi import Depends, FastAPI
from fastapi.testclient import TestClient
from common_util.common_util_auth import verify_session
from M01_MasterData import M01_MasterData_Router as m01_router
from M01_MasterData import M01_MasterData_Store as store
from M02_MasterTemplete import M02_Logic_Lib_Read as lib
@@ -78,7 +79,9 @@ def test_요소_표_밖_파일은_막음(user: TestClient) -> None:
def test_저장_안_한_줄_셈_쓰기_없음(user: TestClient) -> None:
before = _prints()
saved = user.post(f"{BASE}/calc", json={"key": KEY, "inputs": {}}).json()
row = store.logic(KEY)["logic"]
row = m01_router._num(
store.logic(KEY)["logic"]
) # 화면이 받는 꼴(M01 /logic = _num · 794-2b 「개정」 수 칸)
same = user.post(f"{BASE}/calc", json={"key": KEY, "inputs": {}, "row": row}).json()
line = row["호표"][0]
row2 = {**row, "호표": [{**line, "수량": f"({line['수량']}) * 2"}, *row["호표"][1:]]}