Files
Aislo/resources/tester/test_342_3_b05_detail_once.py
T
eomsangdonandClaude Opus 5.5 2124bc85b9 fix(B05 배수유역): 342-3 첫 열기 세부 유역 요청 11번 → 1번 — 같은 틱 analyze 를 한 번으로
- B05_Profile_UI_Drainage_Pipes batched(같은 틱 부름 = 한 요청) · 배수유역 판 analyze 에 씌움
- 옛 소수 관 정수 맞춤(snapOldStations)이 관마다 부르던 POST detail-basins 가 한 번 · 계획고 따라가기 · 속성 이어받기 길은 그대로
- 시험 test_342_3_b05_detail_once(11번 부름 = 1번 · 다음 조작은 다시)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XWh5wNNycMkbwMpACz1rte
2026-10-16 11:06:47 +09:00

23 lines
699 B
Python

"""342-3 B05 첫 열기 — 옛 소수 관 11개를 정수 m 로 옮겨도 세부 유역 요청은 한 번.
배수유역 판 `analyze` = `batched`(같은 틱 부름을 한 번으로) · Node 헬퍼가 TS 를 그 자리에서 돌린다.
"""
import json
import os
import subprocess
HERE = os.path.dirname(os.path.abspath(__file__))
def test_burst_runs_once_then_again():
proc = subprocess.run(
["node", os.path.join(HERE, "helper_342_3_batched.cjs")],
capture_output=True,
text=True,
timeout=60,
)
assert proc.returncode == 0, proc.stderr
result = json.loads(proc.stdout)
assert result == {"afterBurst": 1, "samePromise": True, "afterNext": 2}