Index: tests/peter/test_dg_records.py =================================================================== diff -u -r3e0a859c326e8d99732e055a6ec42fab4ebbba3a -racd09d02879e8add4cf7f694f5db8e423a76c341 --- tests/peter/test_dg_records.py (.../test_dg_records.py) (revision 3e0a859c326e8d99732e055a6ec42fab4ebbba3a) +++ tests/peter/test_dg_records.py (.../test_dg_records.py) (revision acd09d02879e8add4cf7f694f5db8e423a76c341) @@ -1,14 +1,14 @@ ########################################################################### # -# Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. +# Copyright (c) 2021-2023 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_dg_records.py # # @author (last) Dara Navaei -# @date (last) 15-Dec-2021 +# @date (last) 23-Jun-2022 # @author (original) Dara Navaei # @date (original) 20-Jul-2021 # @@ -24,7 +24,7 @@ sys.path.append("../../") from dialin.dg.dialysate_generator import DG from dialin.utils.nv_ops_utils import NVOpsUtils -from dialin.dg.sw_config import DGSWConfigs +from dialin.dg.sw_configs import DGSWConfigs from time import sleep """ @@ -276,6 +276,7 @@ def test_dg_reset_record(): dg = DG(log_level="DEBUG") if dg.cmd_log_in_to_dg(): + """ dg.calibration_record.cmd_request_dg_calibration_record() observer = Observer("dg_calibration_record") dg.calibration_record.attach(observer) @@ -287,10 +288,10 @@ dg.calibration_record.cmd_reset_dg_calibration_record() sleep(0.25) print(dg.calibration_record.dg_calibration_record) - + """ #dg.calibration_record.cmd_reset_dg_calibration_record() #sleep(0.25) - #dg.system_record.cmd_reset_dg_system_record() + dg.system_record.cmd_reset_dg_system_record() #sleep(0.25) #print(dg.system_record.dg_system_record) #dg.service_record.cmd_reset_dg_service_record() @@ -327,7 +328,7 @@ while not observer.received: sleep(0.2) - dg.system_record.dg_system_record['system_record']['top_level_sn'][1] = 'abc-345' + dg.system_record.dg_system_record['system_record']['top_level_sn'][1] = 'DG_Device_00000' dg.system_record.dg_system_record['system_record']['top_level_pn'][1] = '123' dg.system_record.dg_system_record['system_record']['crc'][1] = \ NVOpsUtils.get_group_record_crc(dg.system_record.dg_system_record['system_record']) @@ -352,15 +353,15 @@ dg = DG(log_level="DEBUG") if dg.cmd_log_in_to_dg(): dg.calibration_record.cmd_get_dg_calibration_record_report() - dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-02-09-DG-Record.xlsx') + #dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-02-10-DG-Record.xlsx') if __name__ == "__main__": - #test_dg_reset_record() + test_dg_reset_record() # test_dg_sw_config_record() #test_dg_calibration_record() # test_dg_service_record() #test_dg_system_record() # test_dg_scheduled_runs_record() - test_dg_excel_report() + #test_dg_excel_report()