File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,17 +135,18 @@ def test_manifest_file_success(self):
135
135
self .assertEqual (expected_output , actual_output )
136
136
137
137
def test_manifest_file_tampered (self ):
138
- input = " Algorithmia"
138
+ input = ' Algorithmia'
139
139
expected_output = {"error" : {"error_type" : "LoadingError" ,
140
140
"message" : "Model File Mismatch for squeezenet\n "
141
141
"expected hash: f20b50b44fdef367a225d41f747a0963\n "
142
142
"real hash: 46a44d32d2c5c07f7f66324bef4c7266" ,
143
- "stacktrace" : "NoneType: None \n " }}
143
+ "stacktrace" : '' }}
144
144
145
145
actual_output = json .loads (self .execute_manifest_example (input , apply_successful_manifest_parsing ,
146
146
loading_with_manifest ,
147
147
manifest_path = "tests/manifests/bad_model_manifest"
148
148
".json" ))
149
+ actual_output ['error' ]['stacktrace' ] = ''
149
150
self .assertEqual (expected_output , actual_output )
150
151
151
152
You can’t perform that action at this time.
0 commit comments