diff --git a/resources/tester/test_472_station_user_fields.py b/resources/tester/test_472_station_user_fields.py index 3138287b6..2014dde33 100644 --- a/resources/tester/test_472_station_user_fields.py +++ b/resources/tester/test_472_station_user_fields.py @@ -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]