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

Improve schema test

parent 90216286
No related branches found
No related tags found
1 merge request!25Feature: Use JSON schema
......@@ -125,8 +125,8 @@ class JSONExportTest(TestCase):
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)
msg = "" if not error else f"{error.message} at {error.json_path}"
self.assertFalse(error, 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.
Finish editing this message first!
Please register or to comment