fix(test): 덤프 적재 뒤 낡은 시험 둘 — 가드 뜻은 지키고 새 모양에 맞춤

- v16 「덤프 운반은 아직 안 선다」가 지키던 것 = 운반거리(설계 입력) 없이 운반이 조용히 금액을 갖지 않기
  → 「거리가 와야 선다」로: 거리 없는 기본 조립엔 운반(#L…m) 없음 · 거리 무관 적재(#적재)만 섬
- 갈래 제목 ⊂ 마스터 갈래 키: 10-12 는 표가 아니라 본문 식이라 마스터 표에 갈래가 없음
  (#L…m 는 프로젝트 거리마다 생겨 마스터에 둘 수도 없음) → 식이 내는 FP-10-12 갈래만 까닭 적고 제외
- 58afe8f2 를 일부 시험만 돌리고 올려 난 빨강 · 전체 1763 통과

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BW6Jdsh18WPtYUR6THZJqn
This commit is contained in:
2026-09-14 08:57:24 +09:00
co-authored by Claude Opus 5
parent 58afe8f2d2
commit a2b3ae698f
2 changed files with 11 additions and 3 deletions
+7 -3
View File
@@ -53,10 +53,14 @@ def test_v16_불도저_운반이_갈래마다_금액으로_선다() -> None:
assert build.book.resolve(code).total > 0, code assert build.book.resolve(code).total > 0, code
def test_v16_덤프_운반은_아직_안_선다() -> None: def test_v16_덤프_운반은_거리가_와야_선다() -> None:
"""⚠ 안 서는 것도 사실대로 못 박는다 — 운반거리(설계 입력)를 기다리는 자리다.""" """⚠ 안 서는 것도 사실대로 못 박는다 — 운반은 운반거리(설계 입력)가 와야 선다.
2026-09-14 — 적재(10-12 「1. 적재」)는 거리 무관이라 늘 서고, 운반(`#L…m`)은 거리가 온 조립에만.
"""
build = cached_build() build = cached_build()
assert not [code for code in build.book.titles if code.startswith("B-FP-10-12")] dump = [code for code in build.book.titles if code.startswith("B-FP-10-12")]
assert dump and all(code.endswith("#적재") for code in dump)
# ── V-17 ──────────────────────────────────────────────────────────── # ── V-17 ────────────────────────────────────────────────────────────
@@ -23,6 +23,10 @@ def test_단가표_갈래_제목은_전부_마스터_갈래_키에_있다() -> N
for code in cached_build().book.titles: for code in cached_build().book.titles:
if not code.startswith("B-") or "#" not in code: if not code.startswith("B-") or "#" not in code:
continue continue
if code.startswith("B-FP-10-12-"):
# 덤프 운반·적재(10-12)는 **표가 아니라 본문 식**이라 마스터 표에 갈래가 없음 —
# 갈래(`#적재`·`#L…m`)는 식이 냄(2026-09-14 · `MachineProductivity_Dump`).
continue
work_item, variant = code[2:].split("#", 1) work_item, variant = code[2:].split("#", 1)
keys = { keys = {
normalize_variant_key(k) for k in nodes.get(work_item, {}).get("variant_keys") or [] normalize_variant_key(k) for k in nodes.get(work_item, {}).get("variant_keys") or []