def test_initialize() -> None: manager = AtlasPHManager( name="Test", i2c_lock=threading.RLock(), state=State(), config=peripheral_config, simulate=True, mux_simulator=MuxSimulator(), ) manager.initialize()
def test_clear_calibration() -> None: manager = AtlasPHManager( 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()