Skip to content

Commit a9f0c8c

Browse files
committed
fix(tests): update wikidata identifier
* recent update in idutils started normalizing wikidata identifier * using fake value in tests caused normalization to fail * using real CERN's identifier fixes the test
1 parent 9b9e020 commit a9f0c8c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/resources/serializers/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def full_record_to_dict():
310310
},
311311
"identifiers": [
312312
{
313-
"identifier": "12345abcde",
313+
"identifier": "Q39",
314314
"scheme": "wikidata",
315315
},
316316
{

tests/services/schemas/test_location.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ def test_valid_full(app, valid_full_location):
3838
({"description": "test location description"}),
3939
({"place": "test location place"}),
4040
({"identifiers": [{"identifier": "Q39", "scheme": "wikidata"}]}),
41+
(
42+
{
43+
"identifiers": [
44+
{
45+
"identifier": "https://www.geonames.org/2660646",
46+
"scheme": "geonames",
47+
}
48+
]
49+
}
50+
),
4151
],
4252
)
4353
def test_valid_minimal(app, valid_minimal_location):

0 commit comments

Comments
 (0)