test(B05): 옛 독립 기슭막이 근거 판 읽기 시험 파일 삭제(사용자 지시 — 필요하면 다시 만듦)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LLCk2y5xE8YGVgjbTntWsY
This commit is contained in:
2026-10-08 16:54:51 +09:00
co-authored by Claude Opus 5.5
parent c99a9a0ad4
commit d452413035
@@ -1,53 +0,0 @@
# -*- coding: utf-8 -*-
"""독립 기슭막이 치수 — B05 칸 밑 근거가 표(`resources/data_masonry/revetment_sabang_*.json`)를 읽음.
2026-09-22 sub1: B08 쪽 사유 대조(`B08_Quantity_Engine_Pipe.own_revetment_basis` 등)는 B08 이
`old_code/` 로 끊기며 같이 죽었음 — 그 대조 시험은 빼고, **B05 몫**(TS 가 최신판을 읽는지 ·
그 판이 쓰는 칸이 실제로 있는지 · 높이 칸이 제안 없이 설계자 입력인지)만 되살림.
"""
from __future__ import annotations
import json
import re
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
DATA_DIR = ROOT / "resources" / "data_masonry"
FIELDS = (ROOT / "B05_Profile" / "B05_Profile_UI_Drainage_Facility_Fields.ts").read_text(
encoding="utf-8"
)
CHROME = (ROOT / "B06_Section" / "B06_Section_UI_Cross_Card_Chrome.ts").read_text(encoding="utf-8")
def test_TS_가_최신_판을_읽는다() -> None:
latest = sorted(DATA_DIR.glob("revetment_sabang_*.json"))[-1].name
imported = re.search(r'from "\.\./resources/data_masonry/(revetment_sabang_[^"]+)"', FIELDS)
assert imported and imported.group(1) == latest
def test_TS_가_쓰는_칸이_파일에_있다() -> None:
latest = sorted(DATA_DIR.glob("revetment_sabang_*.json"))[-1]
data = json.loads(latest.read_text(encoding="utf-8"))
items = data["items"]
assert data["scope"] and "사방(계류) 교본 기준" in data["scope"]
assert items["height"]["rule"] == "계획홍수위 + 0.5~0.7m"
assert items["face_slope"]["standard_ratio"] == [0.3, 0.5]
assert items["crown_thickness"]["standard_m"] == [0.3, 0.5]
assert "L7164" in items["backfill_pebble"]["source"]
def test_B05_높이_칸은_제안_없이_설계자_입력() -> None:
# 독립 기슭막이 높이 = 기본값 없음 · 빈 칸 그대로(54-43 · 자리표시 글 없음)
assert (
"createRevetmentFields(keys)" in FIELDS
and "placeholder"
not in FIELDS.split("createRevetmentFields(keys: RevetmentKeys)")[1].split(
"createBasinSplitFields"
)[0]
)
assert "기슭막이 높이 없음 — 근입만 그림" in CHROME