########################################################################### # # Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file test_buttons.py # # @author (last) Peter Lucia # @date (last) 06-Aug-2020 # @author (original) Peter Lucia # @date (original) 06-Aug-2020 # ############################################################################ import sys sys.path.append("..") from dialin.hd.hemodialysis_device import HD from dialin.hd.constants import RESET, NO_RESET def test_buttons(): hd = HD(log_level="DEBUG") hd.buttons.PRESSED hd.buttons.cmd_stop_button_override(hd.buttons.PRESSED, RESET) hd.buttons.cmd_stop_button_override(hd.buttons.PRESSED, NO_RESET) if __name__ == '__main__': test_buttons()