def test_clear_calibrations() -> None: manager = AtlasECManager( name="Test", i2c_lock=threading.RLock(), state=State(), config=peripheral_config, simulate=True, mux_simulator=MuxSimulator(), ) manager.initialize_peripheral() manager.mode = modes.CALIBRATE message, status = manager.create_event( request={"type": events.CLEAR_CALIBRATION}) assert status == 200 manager.check_events()
def test_calibrate_dry() -> None: manager = AtlasECManager( name="Test", i2c_lock=threading.RLock(), state=State(), config=peripheral_config, simulate=True, mux_simulator=MuxSimulator(), ) manager.initialize() manager.mode = Modes.CALIBRATE message, status = manager.events.create( request={"type": "Dry Calibration"}) assert status == 200 manager.events.check()