"""345-4 정리 — B05 등고선 주소 한 벌(`contourAssetUrl` · 미리 받기와 같은 파일) · 빈 saveCorridorIfDirty 지움.""" from __future__ import annotations from pathlib import Path ROOT = Path(__file__).resolve().parents[2] def _read(rel: str) -> str: return (ROOT / rel).read_text(encoding="utf-8") def test_B05_등고선_주소는_한_벌(): for rel in ( "B05_Profile/B05_Profile_UI_Viewer.ts", "B05_Profile/B05_Profile_UI_RouteEdit_Contour.ts", ): source = _read(rel) assert "contourAssetUrl(" in source, rel assert "/contour?interval" not in source, rel # 미리 받기(b_asset_cache)도 같은 함수 — 주소가 같아야 보관함 한 칸을 같이 씀 assert "contourAssetUrl(projectId, confirmed.model_id, interval, smooth)" in _read( "A00_Common/b_asset_cache.ts" ) def test_빈_코리도_올림_함수_지움(): for rel in ( "B05_Profile/B05_Profile_UI_Corridor.ts", "B05_Profile/B05_Profile_UI_Page_Actions.ts", "A00_Common/design/design_view_profile.ts", "A00_Common/design/design_view_profile_3d.ts", ): assert "saveCorridorIfDirty" not in _read(rel), rel