def test_low_integrity_status_report(): thruster = Thruster(max_force=15) Ship(port_panel=ShipPanel(side=PORT, thrusters=[thruster])) thruster.degrade(0.5) assert thruster.status_report["integrity"] == thruster.integrity, \ "Thruster integrity is innacurately reported"
def test_is_active_status_report_no_integrity(): thruster = Thruster(max_force=15) Ship(port_panel=ShipPanel(side=PORT, thrusters=[thruster])) thruster.degrade(1) assert thruster.status_report["is_active"] == thruster.is_active, \ "Thruster is_active is innacurately reported"
def test_max_force_status_report_lothruster_integrity(): thruster = Thruster(max_force=15) Ship(port_panel=ShipPanel(side=PORT, thrusters=[thruster])) thruster.degrade(0.2) assert thruster.status_report["max_force"] == thruster.max_force, \ "Thruster max_force is innacurately reported"