Files
Aislo/resources/tester/test_349_old_wording.py
T
eomsangdonandClaude Opus 5.5 14348279fa fix(노선추천): 349 노선 추천 창 옛 글 — 미리 보기 줄 = [적용]하면 바로 저장 · 새 초기값 · 종단 반영 설명 = [적용] 뒤 본 설계 값과 차이 · [적용]하면 이 종단이 첫 계획선(편집 [확인] · 아래 띠 글 지움)
- 다른 옛 글: 노선 편집 상태 줄 「곡선 기준 R — [확인] 때 반영」 → [저장] 때 · 분석 지형 풍선 「편집 창 분석」 → 노선 편집 분석
- 시험: test_349_old_wording 3 · 관련 77 통과(7 건너뜀) · typecheck 통과

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

41 lines
1.8 KiB
Python

"""349 — 옛 글 고침: [초기화] 확인 글 · 노선 추천 창 글이 지금 흐름을 말하는가.
지금 흐름 = 초기값은 파일 올린 뒤 자동설계 또는 마지막으로 [적용]한 추천 노선 · [초기화]는 다시 셈 아님 ·
추천 [적용] = 바로 저장 · 새 초기값 · 편집 [확인] · 아래 종단 띠 없음.
"""
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_초기화_확인_글():
locale = _read("ui_template/ui_template_locale_b2.ts")
at = locale.index("B05_Route_Reset_Confirm")
text = locale[at : locale.index("B05_Route_Reset_Failed", at)]
assert "확정한 노선" not in text and "재계산에 시간" not in text
assert "마지막으로 [적용]한 추천 노선" in text and "다시 셈하지 않고" in text
assert "recomputation takes" not in text and "without recomputation" in text
def test_노선_추천_창_글():
recommend = _read("B05_Profile/B05_Profile_UI_RouteEdit_Recommend.ts")
assert "편집 창에 놓입니다" not in recommend
assert "[적용]하면 바로 저장 · 새 초기값이 됩니다." in recommend
help_ = _read("B05_Profile/B05_Profile_UI_RouteEdit_Recommend_Help.ts")
assert "[확인]" not in help_ and "아래 띠" not in help_ and "편집 창" not in help_
assert "[적용]하면 이 종단이 그대로 첫 계획선" in help_
def test_노선_편집_다른_옛_글():
edits = _read("B05_Profile/logic/B05_Profile_UI_RouteEdit_Edits.ts")
assert "[확인] 때 반영" not in edits and "[저장] 때 반영" in edits
chrome = _read("B05_Profile/B05_Profile_UI_RouteEdit_Chrome.ts")
assert 'title="편집 창 분석' not in chrome