diff --git a/resources/tester/test_309_2_calc_sites_browser.py b/resources/tester/test_309_2_calc_sites_browser.py index 804eee455..fce9ca2c9 100644 --- a/resources/tester/test_309_2_calc_sites_browser.py +++ b/resources/tester/test_309_2_calc_sites_browser.py @@ -13,7 +13,6 @@ from __future__ import annotations import asyncio import json -import subprocess import urllib.request from pathlib import Path @@ -72,10 +71,7 @@ def _drop_test_logs() -> None: @pytest.fixture(scope="module") def browser(): sync = pytest.importorskip("playwright.sync_api") - committed = subprocess.run( - ["git", "show", "HEAD:resources/master_template/calc_sites.json"], - cwd=ROOT, capture_output=True, check=True, - ).stdout # fmt: skip + committed = BOARD.read_bytes() # 시작 때 파일 바이트 그대로(줄끝 포함) try: with sync.sync_playwright() as play: chrome = play.chromium.launch(channel="msedge", headless=True) diff --git a/resources/tester/test_390_5_snap_step_ops.py b/resources/tester/test_390_5_snap_step_ops.py index 6959c9fde..8afb1bb0f 100644 --- a/resources/tester/test_390_5_snap_step_ops.py +++ b/resources/tester/test_390_5_snap_step_ops.py @@ -9,6 +9,7 @@ TS 셈은 `helper_390_5_snap_step_ops.cjs`(Node) · 파이썬 짝 거울 · 저 import json import random +import re import subprocess import sys from pathlib import Path @@ -225,4 +226,4 @@ def test_서버_측점_셈이_저장_간격을_씀() -> None: assert "stationSnapStep: step === 10 ? 10 : null" in stage # 옛 초안 0.1 · 1 m = null(505-2) assert "saved: () => plan" in page and "...snapOptions(inputs.route, plan)" in page apply = (B05 / "B05_Profile_UI_RouteEdit_Apply.ts").read_text(encoding="utf-8") - assert "stationSnap: true, stationSnapStep: null" in apply # 추천 = 측점 No. + assert re.search(r"stationSnap: true,\s*stationSnapStep: null", apply) # 추천 = 측점 No.