Index: tests/test_ui_proxy.py =================================================================== diff -u -r3a4a3ca071c818acd40918e5d7a2400461e7cedb -r2c218e8e1eaea6f40814c294becefa29e515ab50 --- tests/test_ui_proxy.py (.../test_ui_proxy.py) (revision 3a4a3ca071c818acd40918e5d7a2400461e7cedb) +++ tests/test_ui_proxy.py (.../test_ui_proxy.py) (revision 2c218e8e1eaea6f40814c294becefa29e515ab50) @@ -14,12 +14,11 @@ # ############################################################################ import sys -sys.path.append("../..") +sys.path.append("..") from dialin.hd.hemodialysis_device import HD from time import sleep from dialin.utils.base import AbstractObserver -IP_ADDRESS = "192.168.10.77" class Observer(AbstractObserver): def __init__(self): @@ -29,6 +28,7 @@ print(message) self.valid = message.get("treatment_parameters_valid", False) + def test_create_treatment(): hd = HD(log_level="DEBUG") hd.cmd_hd_software_reset_request() @@ -48,10 +48,12 @@ hd.ui.cmd_ui_start_treatment_request(2) sleep(4) + def test_reset_hd(): hd = HD(log_level="DEBUG") hd.cmd_hd_software_reset_request() + def test_get_hd_operation_mode(): hd = HD(log_level="DEBUG") observer = Observer() @@ -60,6 +62,7 @@ sleep(5) print(hd.get_operation_mode()) + def test_clear_all_alarms(): hd = HD(log_level="DEBUG") hd.alarms.cmd_clear_all_alarms()