Index: tests/test_calibration.py =================================================================== diff -u -re0aac8af8cd14024b89f241bb7b92ddd9bc4956e -r6895b99c133b8d5820df5610c3b12ac55a521998 --- tests/test_calibration.py (.../test_calibration.py) (revision e0aac8af8cd14024b89f241bb7b92ddd9bc4956e) +++ tests/test_calibration.py (.../test_calibration.py) (revision 6895b99c133b8d5820df5610c3b12ac55a521998) @@ -155,52 +155,64 @@ def test_dg_scheduled_runs_record(): dg = DG(log_level="DEBUG") if dg.cmd_log_in_to_dg(): - dg.cmd_ui_request_dg_version() dg.scheduled_runs_record.cmd_request_dg_scheduled_runs_record() observer = Observer("dg_scheduled_runs_record") dg.scheduled_runs_record.attach(observer) while not observer.received: sleep(0.2) - print(dg.dg_version) - print(dg.fpga_version) - dg.scheduled_runs_record.cmd_set_dg_scheduled_runs_record(dg.scheduled_runs_record.dg_scheduled_runs_record) def test_hd_calibration_record(): hd = HD(log_level="DEBUG") if hd.cmd_log_in_to_hd(resend=False): - # hd.ui.cmd_ui_request_hd_version() observer = Observer("hd_calibration_record") hd.calibration_record.attach(observer) hd.calibration_record.cmd_request_hd_calibration_record() while not observer.received: sleep(0.2) - print(hd.ui.hd_version) - print(hd.ui.fpga_version) + hd.calibration_record.cmd_set_hd_calibration_record(hd.calibration_record.hd_calibration_record) - # hd.calibration_record.cmd_set_hd_calibration_record(hd.calibration_record.hd_calibration_record) - def test_hd_service_record(): - pass + hd = HD(log_level="DEBUG") + if hd.cmd_log_in_to_hd(resend=False): + observer = Observer("hd_service_record") + hd.service_record.attach(observer) + hd.service_record.cmd_request_hd_service_record() + while not observer.received: + sleep(0.2) + hd.service_record.cmd_set_hd_service_record(hd.service_record.hd_service_record) + def test_hd_system_record(): - pass + hd = HD(log_level="DEBUG") + if hd.cmd_log_in_to_hd(resend=False): + hd.ui.cmd_ui_request_hd_version() + observer = Observer("hd_system_record") + hd.system_record.attach(observer) + hd.system_record.cmd_request_hd_system_record() + while not observer.received: + sleep(0.2) + print(hd.ui.hd_version) + print(hd.ui.fpga_version) + hd.system_record.cmd_set_hd_system_record(hd.system_record.hd_system_record) + + if __name__ == "__main__": # test_dg_calibration_record() # test_dg_service_record() # test_dg_system_record() # test_dg_scheduled_runs_record() - test_hd_calibration_record() + # test_hd_calibration_record() # test_hd_service_record() - # test_hd_system_record() + test_hd_system_record()