REPOSITORY
cwsfa/following-amr-validation Private
[참조 MVP] 추종형 이송로봇 통합검증 — 추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다.
https://git.agrithing.ai/cwsfa/following-amr-validation.git 33cdd75 feat: 추종형 이송로봇 통합검증 구체 MVP 구현
153f903 ci: add static dynamic and evidence gates
2898f91 feat: add executable institution reference MVP
28e1cdb docs: define product role and interface contract
1 items · feat/concrete-mvp-v2
·/ tests/test_component.py
python · 1.1 KB · 59ebc11 Download
from __future__ import annotationsimport jsonimport unittestfrom pathlib import Pathfrom asw_component import executeROOT = Path(__file__).resolve().parents[1]class ComponentTest(unittest.TestCase): def test_reference_scenario(self): payload = json.loads((ROOT / "examples/input.json").read_text(encoding="utf-8")) result = execute(payload) self.assertTrue(result["accepted"]) self.assertEqual(result["component"], "cwsfa/following-amr-validation") self.assertEqual(result["target"], "validation") self.assertEqual(result["verdict"], "PASS") self.assertEqual(result["passed"], 3) self.assertEqual(result["missingRequired"], []) def test_safety_or_failure_path(self): payload = json.loads((ROOT / "examples/failure-input.json").read_text(encoding="utf-8")) result = execute(payload) self.assertEqual(result["component"], "cwsfa/following-amr-validation") self.assertFalse(result["accepted"]) self.assertEqual(result["verdict"], "FAIL") self.assertIn("RAIL-01", result["missingRequired"])if __name__ == "__main__": unittest.main()