From d452413035d0a56a41add03a9dc94c2653f6db57 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 8 Oct 2026 16:54:51 +0900 Subject: [PATCH] =?UTF-8?q?test(B05):=20=EC=98=9B=20=EB=8F=85=EB=A6=BD=20?= =?UTF-8?q?=EA=B8=B0=EC=8A=AD=EB=A7=89=EC=9D=B4=20=EA=B7=BC=EA=B1=B0=20?= =?UTF-8?q?=ED=8C=90=20=EC=9D=BD=EA=B8=B0=20=EC=8B=9C=ED=97=98=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=82=AD=EC=A0=9C(=EC=82=AC=EC=9A=A9=EC=9E=90=20?= =?UTF-8?q?=EC=A7=80=EC=8B=9C=20=E2=80=94=20=ED=95=84=EC=9A=94=ED=95=98?= =?UTF-8?q?=EB=A9=B4=20=EB=8B=A4=EC=8B=9C=20=EB=A7=8C=EB=93=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LLCk2y5xE8YGVgjbTntWsY --- .../tester/test_b05_revetment_sabang_basis.py | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 resources/tester/test_b05_revetment_sabang_basis.py diff --git a/resources/tester/test_b05_revetment_sabang_basis.py b/resources/tester/test_b05_revetment_sabang_basis.py deleted file mode 100644 index b2a886960..000000000 --- a/resources/tester/test_b05_revetment_sabang_basis.py +++ /dev/null @@ -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