REPOSITORY
ontariotech/task-allocation Private
[참조 MVP] 다중 농기계 작업 배분 A-SW — 농기계 용량을 고려해 작업구역을 예상 완료시간이 최소가 되도록 배분합니다.
https://git.agrithing.ai/ontariotech/task-allocation.git e513f8a feat: adopt python SERVICE SDV reference implementation
9619a21 feat: adopt python SERVICE SDV reference implementation
9089584 ci: add language-specific static and dynamic analysis
3bf8432 docs: define component scope and interface contract
8da6f7a ci: verify contract tests and evidence package
9d1acf5 feat: add executable reference MVP
9a07d04 docs: define component scope and interface contract
1 items · main
·/ tests/test_component.py
python · 606 B · fb2821d 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.assertEqual(len(result["allocations"]), 2) self.assertEqual(sum(len(a["tasks"]) for a in result["allocations"]), 3) self.assertLessEqual(result["makespan"], 5)if __name__ == "__main__": unittest.main()