Skip to content

Commit d98a1e5

Browse files
committed
xxx output the unexpeted output objects to aid debugging
1 parent 7252b19 commit d98a1e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_mig_cgibin_cat.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ def test_returns_file_output_with_single_file_match(self):
4141
}
4242

4343
(output_objects, status) = main(self.configuration, self.logger, self.TEST_CLIENT_ID, user_arguments_dict=payload, environ=self.test_environ)
44-
self.assertEqual(len(output_objects), 1)
44+
try:
45+
self.assertEqual(len(output_objects), 1)
46+
except:
47+
for index, o in enumerate(output_objects):
48+
print("%d: %s" % (index, o['output_type']))
49+
raise
4550
output_obj = output_objects[0]
4651
self.assertEqual(output_obj['object_type'], 'file_output')
4752

0 commit comments

Comments
 (0)