@@ -922,13 +922,13 @@ def test_get_module_level_flag(self, mock_response, expected):
922
922
False ,
923
923
[0x77 , 0xff ],
924
924
[18 , 35 , (0 , 7 , 112 , 255 , 255 , 16 , 0 , 0 , 19 , 136 , 0 , 100 , 3 , 232 , 19 , 136 , 58 , 152 )],
925
- {'status' :True , 'info' : 'Auto page support: True\n Max write length: 2048\n Start payload size 112\n Max block size 2048\n Write to EPL supported\n Abort CMD102h supported True\n Get module FW upgrade features time: 0.00 s \ n ' , 'result' : (112 , 2048 , False , True , 2048 )}
925
+ {'status' :True , 'info' : 'Auto page support: True\n Max write length: 2048\n Start payload size 112\n Max block size 2048\n Write to EPL supported\n Abort CMD102h supported True\n ' , 'result' : (112 , 2048 , False , True , 2048 )}
926
926
),
927
927
(
928
928
False ,
929
929
[0x77 , 0xff ],
930
930
[18 , 35 , (0 , 7 , 112 , 255 , 255 , 1 , 0 , 0 , 19 , 136 , 0 , 100 , 3 , 232 , 19 , 136 , 58 , 152 )],
931
- {'status' :True , 'info' : 'Auto page support: True\n Max write length: 2048\n Start payload size 112\n Max block size 2048\n Write to LPL supported\n Abort CMD102h supported True\n Get module FW upgrade features time: 0.00 s \ n ' , 'result' : (112 , 2048 , True , True , 2048 )}
931
+ {'status' :True , 'info' : 'Auto page support: True\n Max write length: 2048\n Start payload size 112\n Max block size 2048\n Write to LPL supported\n Abort CMD102h supported True\n ' , 'result' : (112 , 2048 , True , True , 2048 )}
932
932
),
933
933
])
934
934
def test_get_module_fw_upgrade_feature (self , input_param , mock_response1 , mock_response2 , expected ):
@@ -945,11 +945,11 @@ def test_get_module_fw_upgrade_feature(self, input_param, mock_response1, mock_r
945
945
@pytest .mark .parametrize ("mock_response, expected" , [
946
946
(
947
947
[110 , 26 , (3 , 3 , 0 , 0 , 0 , 1 , 1 , 4 , 3 , 0 , 0 , 100 , 3 , 232 , 19 , 136 , 58 , 152 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 4 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 1 , 0 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )],
948
- {'status' :True , 'info' : 'Get module FW info\n Image A Version: 0.0.1\n Image B Version: 0.0.0\n Running Image: A; Committed Image: A\n Get module FW info time: 0.00 s \ n ' , 'result' : ('0.0.1' , 1 , 1 , 0 , '0.0.0' , 0 , 0 , 0 )}
948
+ {'status' :True , 'info' : 'Get module FW info\n Image A Version: 0.0.1\n Image B Version: 0.0.0\n Running Image: A; Committed Image: A\n ' , 'result' : ('0.0.1' , 1 , 1 , 0 , '0.0.0' , 0 , 0 , 0 )}
949
949
),
950
950
(
951
951
[110 , 26 , (48 , 3 , 0 , 0 , 0 , 1 , 1 , 4 , 3 , 0 , 0 , 100 , 3 , 232 , 19 , 136 , 58 , 152 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 4 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 1 , 0 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )],
952
- {'status' :True , 'info' : 'Get module FW info\n Image A Version: 0.0.1\n Image B Version: 0.0.0\n Running Image: B; Committed Image: B\n Get module FW info time: 0.00 s \ n ' , 'result' : ('0.0.1' , 0 , 0 , 0 , '0.0.0' , 1 , 1 , 0 )}
952
+ {'status' :True , 'info' : 'Get module FW info\n Image A Version: 0.0.1\n Image B Version: 0.0.0\n Running Image: B; Committed Image: B\n ' , 'result' : ('0.0.1' , 0 , 0 , 0 , '0.0.0' , 1 , 1 , 0 )}
953
953
),
954
954
])
955
955
def test_get_module_fw_info (self , mock_response , expected ):
@@ -962,7 +962,7 @@ def test_get_module_fw_info(self, mock_response, expected):
962
962
assert result == expected
963
963
964
964
@pytest .mark .parametrize ("input_param, mock_response, expected" , [
965
- (1 , 1 , (True , 'Module FW run: Success\n Module FW run time: 0.00 s \ n ' )),
965
+ (1 , 1 , (True , 'Module FW run: Success\n ' )),
966
966
(1 , 64 , (False , 'Module FW run: Fail\n FW_run_status 64\n ' )),
967
967
])
968
968
def test_module_fw_run (self , input_param , mock_response , expected ):
@@ -973,7 +973,7 @@ def test_module_fw_run(self, input_param, mock_response, expected):
973
973
assert result == expected
974
974
975
975
@pytest .mark .parametrize ("mock_response, expected" , [
976
- (1 , (True , 'Module FW commit: Success\n Module FW commit time: 0.00 s \ n ' )),
976
+ (1 , (True , 'Module FW commit: Success\n ' )),
977
977
(64 , (False , 'Module FW commit: Fail\n FW_commit_status 64\n ' )),
978
978
])
979
979
def test_module_fw_commit (self , mock_response , expected ):
0 commit comments