Skip to content

Commit f3ad6b5

Browse files
carlinmacklnielsen
authored andcommitted
tests: fix DC test URLs
1 parent 5ab4ca8 commit f3ad6b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/resources/serializers/test_dublincore_serializer.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_dublincorejson_serializer(running_app, updated_full_record):
4141
"""Test serializer to Dublin Core JSON"""
4242
expected_data = {
4343
"contributors": ["Nielsen, Lars Holm"],
44-
"types": ["info:eu-repo/semantic/other"],
44+
"types": ["info:eu-repo/semantics/other"],
4545
"relations": [
4646
"https://doi.org/10.1234/foo.bar",
4747
"https://doi.org/10.1234/inveniordm.1234.parent",
@@ -83,7 +83,7 @@ def test_dublincorejson_serializer(running_app, updated_full_record):
8383
def test_dublincorejson_serializer_minimal(running_app, updated_minimal_record):
8484
"""Test serializer to Dublin Core JSON with minimal record"""
8585
expected_data = {
86-
"types": ["info:eu-repo/semantic/other"],
86+
"types": ["info:eu-repo/semantics/other"],
8787
"titles": ["A Romans story"],
8888
"creators": ["Name", "Troy Inc."],
8989
"dates": ["2020-06-01"],
@@ -128,7 +128,7 @@ def test_dublincorexml_serializer(running_app, updated_full_record):
128128
"<dc:rights>Creative Commons Attribution 4.0 " + "International</dc:rights>",
129129
"<dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights>",
130130
"<dc:title>InvenioRDM</dc:title>",
131-
"<dc:type>info:eu-repo/semantic/other</dc:type>",
131+
"<dc:type>info:eu-repo/semantics/other</dc:type>",
132132
]
133133

134134
serializer = DublinCoreXMLSerializer()
@@ -145,7 +145,7 @@ def test_dublincorexml_serializer_minimal(running_app, updated_minimal_record):
145145
"<dc:date>2020-06-01</dc:date>",
146146
"<dc:rights>info:eu-repo/semantics/openAccess</dc:rights>",
147147
"<dc:title>A Romans story</dc:title>",
148-
"<dc:type>info:eu-repo/semantic/other</dc:type>",
148+
"<dc:type>info:eu-repo/semantics/other</dc:type>",
149149
]
150150

151151
serializer = DublinCoreXMLSerializer()
@@ -178,7 +178,7 @@ def test_dublincorexml_serializer_list(
178178
"<dc:rights>Creative Commons Attribution 4.0 " + "International</dc:rights>",
179179
"<dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights>",
180180
"<dc:title>InvenioRDM</dc:title>",
181-
"<dc:type>info:eu-repo/semantic/other</dc:type>",
181+
"<dc:type>info:eu-repo/semantics/other</dc:type>",
182182
]
183183

184184
expected_data_minimal = [
@@ -187,7 +187,7 @@ def test_dublincorexml_serializer_list(
187187
"<dc:date>2020-06-01</dc:date>",
188188
"<dc:rights>info:eu-repo/semantics/openAccess</dc:rights>",
189189
"<dc:title>A Romans story</dc:title>",
190-
"<dc:type>info:eu-repo/semantic/other</dc:type>",
190+
"<dc:type>info:eu-repo/semantics/other</dc:type>",
191191
]
192192

193193
serializer = DublinCoreXMLSerializer()

0 commit comments

Comments
 (0)