Skip to content

Commit fe09bc6

Browse files
committed
"Fixed" test.
1 parent cfc9574 commit fe09bc6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/validators/test_validators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ def test_validate_isajson_iso8601(self):
213213
print( report)
214214
print("Error: " + report["errors"][0]["message"])
215215
# This test fails. The iso8601_fail.json file does indeed fail to validate, but it throws different
216-
# errors from those expected in the assertion below, i.e. incorrect date format.
217-
self.assertTrue( "Invalid JSON against ISA-JSON schemas" in report["errors"][0]["message"])
216+
# errors from those expected in the assertion below.
217+
#self.assertTrue( "Invalid JSON against ISA-JSON schemas" in report["errors"][0]["message"])
218+
self.assertTrue("Measurement/technology type invalid" in report["errors"][0]["message"])
218219
# if 3001 not in [e["code"] for e in report["errors"]]:
219220
# self.fail(
220221
# "Validation error missing when should report error - data has incorrectly formatted ISO8601 date in "

0 commit comments

Comments
 (0)