✅ Get unit by id
| Category | Ability |
| Status | Passing |
| Test | tests/test_data_loader.py::test_get_unit_by_id |
PRECONDITIONS:
Preconditions
- UNITS data loaded
Action
- Call get_unit("001").
Expected Postconditions
-
Returns UnitData with name="Duban".
-
hp == 6, pwr == 3.
Assertions
assert unit.name == "Duban"
assert unit.hp == 6
assert unit.pwr == 3