def test_initialize_peripheral() -> None: manager = AtlasECManager( name="Test", i2c_lock=threading.RLock(), state=State(), config=peripheral_config, simulate=True, mux_simulator=MuxSimulator(), ) manager.initialize_peripheral()
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() manager.mode = Modes.CALIBRATE message, status = manager.events.create( request={"type": "Clear Calibration"}) assert status == 200 manager.events.check()
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_peripheral() manager.mode = modes.CALIBRATE message, status = manager.create_event( request={"type": events.CALIBRATE_DRY}) assert status == 200 manager.check_events()