- 309-2 화면 시험: 5177 이 8004 로 갈 때만 돎(남의 마스터 안 씀) · 실패해도 판 되돌림(finally) · 읽기는 서버 응답으로 판정 - 505-3 첫 시험: 픽셀 (1199,296) 대신 캔버스 교각점 색으로 찾음 · 포트 · 프로젝트는 환경 변수로 - 349 계열 · 346-2 · 356-4: helper_verify_project 가 OWNERS.md 검증_subN 중 가장 오래 안 바뀐 프로젝트를 읽기만 · 없으면 까닭 글로 건너뜀 · 낡은 기대 xfail - helper_ts_stub_loader 공용 불러오기 + 새 시험 · 헬퍼 3 곳 옮김 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
30 lines
1004 B
Python
30 lines
1004 B
Python
"""507-4 — 공용 TS 불러오기 `helper_ts_stub_loader.cjs`: 진짜 TS 를 불러 가짜 @config · fetch 로 돎.
|
|
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_507_4_ts_stub_loader.py -q
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import json
|
|
import shutil
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
HERE = Path(__file__).resolve().parent
|
|
TSC = HERE.parents[1] / "config" / "node_modules" / "typescript"
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
shutil.which("node") is None or not TSC.is_dir(), reason="node · typescript 없음"
|
|
)
|
|
def test_공용_로더가_진짜_TS_불러_가짜_주소로_판_읽음():
|
|
run = subprocess.run(
|
|
["node", str(HERE / "helper_507_4_loader_smoke.cjs")],
|
|
capture_output=True, text=True, encoding="utf-8", timeout=60, check=True,
|
|
) # fmt: skip
|
|
got = json.loads(run.stdout)
|
|
assert got["ground"] is True and got["corridor"] is False
|
|
assert got["calls"] == ["http://fake/dashboard/calc-sites"] # 판은 한 번만 받아 둠
|