fix(m02-cf): 견본 메쌓기 높이 증가율표 입력 그룹을 소요량으로 · 시험이 마스터 그룹과 대조

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BU9gbNE3aWFUvE61pS2WGt
This commit is contained in:
2026-10-01 16:21:27 +09:00
co-authored by Claude Opus 5.5
parent 2c4078e187
commit dfd4810bf1
2 changed files with 12 additions and 1 deletions
@@ -73,7 +73,7 @@
"y": 460,
"input": {
"mode": "group",
"group": "계수",
"group": "소요량",
"elements": [],
"table": {
"key": "QF000422"
+11
View File
@@ -224,6 +224,17 @@ def _run(lg: dict, master) -> dict:
return {b["id"]: ports[b["id"]]["값"] for b in lg["boxes"] if b["kind"] == "output"}
def test_견본_표_그룹이_마스터와_같음(master) -> None:
"""표 입력 상자의 group = 그 표가 든 마스터 파일 그룹(소요량 · 계수)"""
cm, files = master
group = {str(t["키"]): d["그룹"] for d in files.values() if d.get("그룹") in cm.mf.TABLE_GROUPS for t in d.get("표") or []} # fmt: skip
for lg in SAMPLES.values():
for b in lg["boxes"]:
table = b.get("input", {}).get("table")
if table:
assert b["input"]["group"] == group[table["key"]], (b["id"], table["key"])
def test_견본1_원가_calc_와_같음(master) -> None:
from M01_MasterData.LogicBuilder import M01_LB_Calc as lb