REPOSITORY
nas/thinning-end-effector Private
[참조 MVP] 적과 엔드이펙터 제어 — 과실 후보에 대한 접근·분리·회수 시퀀스를 표현하는 참조 MVP입니다.
https://git.agrithing.ai/nas/thinning-end-effector.git 9073cca feat: 적과 엔드이펙터 제어 구체 MVP 구현
61be75a ci: add static dynamic and evidence gates
bf80881 feat: add executable institution reference MVP
71123d9 docs: define product role and interface contract
1 items · feat/concrete-mvp-v2
·/ tests/test_component.py
python · 1.0 KB · 4db78ee 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"], "nas/thinning-end-effector") self.assertEqual(result["target"], "mcu") self.assertEqual(result["sequence"][2], "TWIST") self.assertEqual(result["estimatedCycleMs"], 3400) 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"], "nas/thinning-end-effector") self.assertFalse(result["accepted"]) self.assertIn("FORCE_LIMIT_OUT_OF_RANGE", result["interlocks"])if __name__ == "__main__": unittest.main()