Skip to content
Snippets Groups Projects
Commit 9bb08e85 authored by Felix Blanke's avatar Felix Blanke
Browse files

Avoid retrieving full list

parent 1620864a
Branches
No related tags found
1 merge request!25Feature: Use JSON schema
......@@ -120,9 +120,9 @@ class JSONExportTest(TestCase):
with self.subTest(event=event):
self.set_up_event(event=event)
errors = list(self.json_export_validator.iter_errors(self.export_dict))
msg = "" if not errors else best_match(errors).message
self.assertFalse(errors, msg)
error = best_match(self.json_export_validator.iter_errors(self.export_dict))
msg = "" if error is None else error.message
self.assertTrue(error is None, msg)
def test_id_uniqueness(self):
"""Test if objects are only exported once."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment