# -*- coding: utf-8 -*- """PLAN 177-2 — 동물이동형 = 고르기(유 / 무) · 체크박스 꼴(bool) 지움 · 화면 값은 helper_173_7.""" import json import subprocess from pathlib import Path import pytest HERE = Path(__file__).parent ROOT = HERE.parents[1] DESIGN = ROOT / "A00_Common" / "design" @pytest.fixture(scope="module") def out() -> dict: if not (ROOT / "config" / "node_modules").is_dir(): pytest.skip("의존성 미설치") done = subprocess.run( # noqa: S603 — 고정 실행 파일 ["node", str(HERE / "helper_173_7_inlet_animal.cjs")], capture_output=True, text=True, encoding="utf-8", ) assert done.returncode == 0, done.stderr return json.loads(done.stdout) def test_체크박스_없음(out: dict) -> None: assert out["checkbox"] is False def test_bool_꼴_지움() -> None: spec = (DESIGN / "logic/design_structure_spec.ts").read_text("utf-8") form = (DESIGN / "design_structure_form.ts").read_text("utf-8") pipe = (DESIGN / "logic/design_structure_pipe.ts").read_text("utf-8") assert '"bool"' not in spec and '"bool"' not in form and '"bool"' not in pipe assert "createCheckbox" not in form