Skip to main content

✅ Get unit by id

CategoryAbility
StatusPassing
Testtests/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