Files
Aislo/resources/tester/test_345_4_contour_one_url.py
T
eomsangdonandClaude Opus 5.5 593ee198aa refactor(종단보기): 345-4 정리 — 빈 saveCorridorIfDirty 와 부르는 곳 지움 · B05 등고선 주소 두 곳 = contourAssetUrl(미리 받기와 같은 파일)
- 3D 뷰어 · 노선 편집 바탕 등고선이 같은 주소 한 벌(recalculate=false 붙음 · 보관함 한 칸)
- 시험: test_345_4_contour_one_url 2 · 관련 250 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VmC34fsxxbweEG3RUjs3Mn
2026-10-16 11:39:56 +09:00

36 lines
1.2 KiB
Python

"""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