From 265ba8352efd1bb38ad3450258548e54153277b6 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Wed, 9 Sep 2026 18:23:46 +0900 Subject: [PATCH] =?UTF-8?q?fix(tester):=20=EC=98=AE=EA=B8=B4=20=EC=8B=9C?= =?UTF-8?q?=ED=97=98=EC=9D=B4=20=EC=98=9B=20=EA=B2=BD=EB=A1=9C(`tmp/tests`?= =?UTF-8?q?)=EB=A5=BC=20=EB=B6=80=EB=A5=B4=EB=8D=98=20=EA=B2=83=20?= =?UTF-8?q?=EB=B0=94=EB=A1=9C=EC=9E=A1=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 시험을 `resources/tester` 로 옮긴 뒤 **한 건이 실패**하고 있었음 — `test_preview_cost` 가 짝 파일을 `tmp.tests.…` 로 불러 못 찾았음(옮긴 폴더에 없음). - `from resources.tester.test_preview_assets import …` 로 고침 - 실행 안내 문구 셋도 새 경로로(`diag_structures` · `helper_b06_fill_slope_length` · `test_common_util_crs`) - 정책 시험 설명은 **사실이 바뀌었으므로** 고쳐 적음 — 「git 밖이라」가 아니라 「옮겨서 함께 건너가되, 까닭은 여전히 값 옆(정본)에 두는 것이 옳다」 `resources/tester/` 1183 통과 / 22 건너뜀 / **실패 0**. Co-Authored-By: Claude Opus 5 (1M context) --- resources/tester/diag_structures.py | 2 +- resources/tester/helper_b06_fill_slope_length.py | 2 +- resources/tester/test_b05_structures_registry_policy.py | 6 ++++-- resources/tester/test_common_util_crs.py | 2 +- resources/tester/test_preview_cost.py | 4 +++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/resources/tester/diag_structures.py b/resources/tester/diag_structures.py index eefdacbd..d1a53b9b 100644 --- a/resources/tester/diag_structures.py +++ b/resources/tester/diag_structures.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """신규 프로젝트에서 구조물이 안 보이는 원인 진단 — 읽기 전용. -실행: ./venv/Scripts/python.exe tmp/tests/diag_structures.py [프로젝트UUID] +실행: ./venv/Scripts/python.exe resources/tester/diag_structures.py [프로젝트UUID] 인자를 생략하면 storage 아래에서 **가장 최근에 만들어진** 프로젝트를 고른다. 자동설계 체인이 남겨야 할 것을 한 줄씩 대조한다: diff --git a/resources/tester/helper_b06_fill_slope_length.py b/resources/tester/helper_b06_fill_slope_length.py index 64ef38c2..d8c992fb 100644 --- a/resources/tester/helper_b06_fill_slope_length.py +++ b/resources/tester/helper_b06_fill_slope_length.py @@ -5,7 +5,7 @@ 아니라 실행 스크립트다. 1) 공용 브라우저에서 `/api/projects/{pid}/sections/{route}/detail` 응답을 파일로 저장 - 2) ./venv/Scripts/python.exe tmp/tests/helper_b06_fill_slope_length.py <그 파일> [측점...] + 2) ./venv/Scripts/python.exe resources/tester/helper_b06_fill_slope_length.py <그 파일> [측점...] 「≥」는 사면이 설계선 끝(계산 반폭)까지 원지반을 못 만난 측점 — 거기까지의 하한값이다. 허용 오차 — 화면은 교차 판정에 2cm 허용오차(`MEET_TOLERANCE_M`)를 쓰고 여기서는 부호 diff --git a/resources/tester/test_b05_structures_registry_policy.py b/resources/tester/test_b05_structures_registry_policy.py index 788b4a03..c68f3990 100644 --- a/resources/tester/test_b05_structures_registry_policy.py +++ b/resources/tester/test_b05_structures_registry_policy.py @@ -328,9 +328,11 @@ def test_options_without_default_are_required(): 비면 계산 쪽이 기준값으로 돌고 그 사실이 화면에 사유로 뜨며, 값을 넣으면 그 값이 이긴다 (전면 기울기 · 물빼기 구멍 · 뒷길이 …). 그런 칸은 **정본에 `empty_means` 로 까닭을 적어** 둔다. - ⚠ **예외 목록을 이 파일에 두지 않는다.** 이 파일은 `tmp/tests` 라 **git 밖**이라, + ⚠ **예외 목록을 이 파일에 두지 않는다.** 예전에는 이 파일이 `tmp/tests` 라 **git 밖**이어서, 정본(추적됨)만 바뀌고 예외(추적 안 됨)는 안 따라가 **다른 창에서만 시험이 깨졌다** - (2026-09-09 실제로 두 번). 까닭이 값 옆에 있으면 그 일이 안 생긴다. + (2026-09-09 실제로 두 번). 그 뒤 시험을 `resources/tester` 로 옮겨 함께 건너가게 됐으나, + **까닭은 여전히 값 옆(정본)에 두는 것이 옳다** — 칸을 여는 사람이 곧 까닭을 아는 사람이고, + 목록은 시간이 지나면 무엇을 왜 넣었는지 아무도 못 되짚는다. """ loose = [ f"{item.type_id}.{option.key}" diff --git a/resources/tester/test_common_util_crs.py b/resources/tester/test_common_util_crs.py index 3f29495f..98fc6a0f 100644 --- a/resources/tester/test_common_util_crs.py +++ b/resources/tester/test_common_util_crs.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """PRJ 좌표계 판별 검증 — common_util_crs + 수리된 get_epsg_from_prj. -실행: ./venv/Scripts/python.exe -m pytest tmp/tests/test_common_util_crs.py -q +실행: ./venv/Scripts/python.exe -m pytest resources/tester/test_common_util_crs.py -q """ from __future__ import annotations diff --git a/resources/tester/test_preview_cost.py b/resources/tester/test_preview_cost.py index ffe87418..ae921843 100644 --- a/resources/tester/test_preview_cost.py +++ b/resources/tester/test_preview_cost.py @@ -11,7 +11,9 @@ sys.path.append(str(ROOT)) def _las_file() -> Path: - from tmp.tests.test_preview_assets import _project_root # noqa: PLC0415 + # ⚠ 시험이 `tmp/tests` → `resources/tester` 로 옮겨졌다(2026-09-09). 옛 경로로 부르면 + # 옮긴 폴더에서 못 찾는다 — 같은 폴더의 짝을 새 경로로 부른다. + from resources.tester.test_preview_assets import _project_root # noqa: PLC0415 root = _project_root() files = sorted((root / "B03_FileInput" / "input" / "las").glob("*.la*"))