test(472-4 ① 요구 274): 노선이 바뀌면 손 상단측은 안 들고 감 — 새 지형이 정함(지금 규칙 굳힘)

- 넘기는 칸(CARRY_INPUT · ROUTE_CARRY · STRUCTURE_ADJUST)에 측구 방향 · 단면 유형 · 상단측 없음 · 노선 저장 코드에 uphill 없음
- 옮긴 구조물 새 자리 측점 = 지형 자동(출처 칸 없음)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 09:51:06 +09:00
co-authored by Claude Opus 5.5
parent 919cd68ba5
commit 6564c9811d
@@ -132,3 +132,19 @@ def test_X6_옮긴_측점_횡단_입력_TS_파이썬_한_벌() -> None:
assert len(CARRY_INPUT_KEYS) == 7 and "berm" in CARRY_INPUT_KEYS
design = (ROOT / "B06_Section/B06_Section_Router_Design.py").read_text(encoding="utf-8")
assert "CARRY_INPUT_KEYS = (" not in design # 파이썬에 목록 글 없음
def test_요구274_노선이_바뀌면_손_상단측은_안_들고_감() -> None:
"""사용자 확정 — 새 자리로 가면 손 상단측은 의미 없음 · 새 지형이 정함(지금 규칙 굳힘)."""
from B06_Section.B06_Section_Engine_Design import ROUTE_CARRY_KEYS
from B06_Section.B06_Section_Router_Design import STRUCTURE_ADJUST_KEYS
carried = {*CARRY_INPUT_KEYS, *ROUTE_CARRY_KEYS, *STRUCTURE_ADJUST_KEYS}
assert not carried & {"ditch_side", "section_mode", "uphill_side", "uphill_side_source"}
for name in ("B05_Profile_Route_Save.py", "B05_Profile_Route_Save_Parts.py"):
assert "uphill" not in (ROOT / "B05_Profile" / name).read_text(encoding="utf-8")
def test_요구274_옮긴_구조물_새_자리는_지형_자동(tmp_path) -> None:
rows = _merged(tmp_path, [_fresh(36.0)]) # 35 → 36 옮김
assert rows[36.0]["uphill_side"] == "left" and "uphill_side_source" not in rows[36.0]