- 저장 길(세션 uphill → uphill_overrides) · B06 종단 병합 함수 남김 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QND7Co43B24zK2P937rdxt
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 176-3 — B05 3D 측점 노란 띠 끝 주황 구슬(측구 방향 고르기) · 클릭 · 처리기 지움.
|
|
|
|
저장 길(세션 uphill → uphill_overrides)과 B06 이 쓰는 종단 병합 함수는 남김.
|
|
"""
|
|
|
|
import os
|
|
|
|
ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..")
|
|
|
|
|
|
def _read(*parts):
|
|
with open(os.path.join(ROOT, *parts), encoding="utf-8") as f:
|
|
return f.read()
|
|
|
|
|
|
def test_markers_have_no_lamp():
|
|
src = _read("B05_Profile", "B05_Profile_UI_Markers.ts")
|
|
for gone in ("uphillStationId", "onUphillPick", "0xf97316", "UPHILL_LAMP", "lampHit"):
|
|
assert gone not in src, gone
|
|
|
|
|
|
def test_page_has_no_lamp_handler():
|
|
src = _read("A00_Common", "design", "design_view_profile.ts")
|
|
assert "onUphillPick" not in src
|
|
assert "uphillOverrides" not in _read("B05_Profile", "B05_Profile_UI_Page_Stations.ts")
|
|
|
|
|
|
def test_save_path_and_merge_kept():
|
|
# 저장 길(세션 → 저장 몸통)과 B06 이 부르는 종단 병합 함수는 그대로
|
|
page = _read("A00_Common", "design", "design_view_profile.ts")
|
|
assert "persistUphillOverrides" in page
|
|
assert "uphill_overrides" in _read("B05_Profile", "B05_Profile_UI_Page_Actions.ts")
|
|
assert "def _merge_uphill_overrides_into_longitudinal" in _read(
|
|
"B05_Profile", "B05_Profile_Router_Confirm.py"
|
|
)
|