Skip to content

Commit 4c6b718

Browse files
committed
updated test case as we're now actually using stacktraces!
1 parent cb18c18 commit 4c6b718

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_adk_local.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,18 @@ def test_manifest_file_success(self):
135135
self.assertEqual(expected_output, actual_output)
136136

137137
def test_manifest_file_tampered(self):
138-
input = "Algorithmia"
138+
input = 'Algorithmia'
139139
expected_output = {"error": {"error_type": "LoadingError",
140140
"message": "Model File Mismatch for squeezenet\n"
141141
"expected hash: f20b50b44fdef367a225d41f747a0963\n"
142142
"real hash: 46a44d32d2c5c07f7f66324bef4c7266",
143-
"stacktrace": "NoneType: None\n"}}
143+
"stacktrace": ''}}
144144

145145
actual_output = json.loads(self.execute_manifest_example(input, apply_successful_manifest_parsing,
146146
loading_with_manifest,
147147
manifest_path="tests/manifests/bad_model_manifest"
148148
".json"))
149+
actual_output['error']['stacktrace'] = ''
149150
self.assertEqual(expected_output, actual_output)
150151

151152

0 commit comments

Comments
 (0)