Skip to content

Commit f2cab92

Browse files
author
João Guerreiro
committed
fix(tests): load expected response
1 parent b557b9b commit f2cab92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ def test_multi_content_scan(self):
297297
scan_results, status_code = self.client.multi_content_scan(entry.input)
298298
self.assertEqual(status_code, 200)
299299
self.assertEqual(type(scan_results), list)
300-
example_dict = json.loads(EXAMPLE_RESPONSE)
301300
for i, scan_result in enumerate(scan_results):
302301
if entry.expected:
302+
example_dict = json.loads(entry.expected)
303303
self.assertEqual(
304304
all(
305305
elem in example_dict[i]["policies"]

0 commit comments

Comments
 (0)