# -*- coding: utf-8 -*- """요구 359-2 · 360-2 — 좌측 패널 아래 [?] 는 액션 줄을 언제 붙여도 한 벌. ① 패널 세우기 전에 붙인 줄(E05 꼴) = 바로 쪼갬 · [?] ② 세운 뒤에 붙인 줄(E03 · E04 · E06 · E07 꼴) = 붙는 때 쪼갬 · [?] · 지켜보기 끊음 """ import json import os import subprocess import pytest HERE = os.path.dirname(os.path.abspath(__file__)) @pytest.fixture(scope="module") def results(): proc = subprocess.run( ["node", os.path.join(HERE, "helper_359_2_late_actions.cjs")], capture_output=True, text=True, encoding="utf-8", timeout=60, ) assert proc.returncode == 0, proc.stderr return json.loads(proc.stdout) def test_먼저_붙인_줄은_바로_물음(results): early = results["early"] assert early["before"] is True assert early["help"] == 1 and early["split"] and early["scroll"] and early["lastIsActions"] assert early["watching"] == 0 def test_늦게_붙인_줄도_물음_한_벌(results): late = results["late"] assert late["before"] is False assert late["help"] == 1 and late["split"] and late["scroll"] and late["lastIsActions"] assert late["watching"] == 0