Skip to content

Commit 837f0a0

Browse files
committed
fixed validation
1 parent d5812fd commit 837f0a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_gen_shacl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def test_pangaea_validation(self):
107107

108108
def test_datacite_validation(self):
109109
res = validate_any_from_microdata(
110-
input_url="https://commons.datacite.org/doi.org/10.7892/boris.108387"
110+
input_url="https://api.datacite.org/application/vnd.schemaorg.ld+json/10.7892/boris.108387"
111111
)
112112
self.assertGreater(len(res[0]), 0)
113113
self.assertFalse(res[0]["https://doi.org/10.7892/boris.108387"]["conforms"])
114114
self.assertEqual(
115115
len(res[0]["https://doi.org/10.7892/boris.108387"]["errors"]), 2
116116
)
117117
self.assertEqual(
118-
len(res[0]["https://doi.org/10.7892/boris.108387"]["warnings"]), 11
118+
len(res[0]["https://doi.org/10.7892/boris.108387"]["warnings"]), 12
119119
)
120120

121121
@unittest.skip("Deprecated, Profile.py should be used instead")

0 commit comments

Comments
 (0)