diff --git a/AKModel/tests/test_json_export.py b/AKModel/tests/test_json_export.py index 71101302890a4351dc78b9241d61b8f29ba537b7..78046fc9617e2810d24d7d962c02745d851f567a 100644 --- a/AKModel/tests/test_json_export.py +++ b/AKModel/tests/test_json_export.py @@ -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."""