Skip to content

Commit 8a5fd63

Browse files
committed
Update test_validate.py
1 parent a539510 commit 8a5fd63

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_validate.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ def test_validate_json(self):
2929
"""
3030
self.assertIsNone(validate(self.correct_msdf1, self.validation_types))
3131

32-
@unittest.skip(reason="""
33-
32+
@unittest.skip(
33+
reason="""\
34+
3435
This test did not previously do what was expected. It was raising a validation error
3536
not because of the text below suggesting the validator was able to identify an issue
3637
with the `mapping_justification` slot, but because `orcid` was missing from the prefix map.
3738
The error actually thrown was::
38-
39+
3940
jsonschema.exceptions.ValidationError: The prefixes in {'orcid'} are missing from 'curie_map'.
40-
41+
4142
With updates in https://github.com/mapping-commons/sssom-py/pull/431, the default prefix map
4243
which includes `orcid` is added on parse, and this error goes away. Therefore, this test
4344
now fails, but again, this is a sporadic failure since the test was not correct in the first
4445
place. Therefore, this test is now skipped and marked for FIXME.
45-
""")
46+
"""
47+
)
4648
def test_validate_json_fail(self):
4749
"""
4850
Test if JSONSchemaValidation fail is as expected.

0 commit comments

Comments
 (0)