Skip to content

Commit

Permalink
Add properties to agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 28, 2024
1 parent 5c948a8 commit 09c64c2
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions ckanext/dcat/tests/profiles/dcat_ap_2/test_scheming_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,14 @@ def test_multiple_contacts(self):
dct:description "This is a dataset" ;
dcat:contactPoint [ a vcard:Kind ;
vcard:fn "Test Contact 1" ;
vcard:hasEmail <mailto:[email protected]> ],
vcard:hasEmail <mailto:[email protected]> ;
vcard:hasUID "https://orcid.org/0000-0002-9095-9201"
],
[ a vcard:Kind ;
vcard:fn "Test Contact 2" ;
vcard:hasEmail <mailto:[email protected]> ] ;
vcard:hasEmail <mailto:[email protected]> ;
vcard:hasUID "https://orcid.org/0000-0002-9095-9202"
] ;
.
"""

Expand All @@ -868,8 +872,16 @@ def test_multiple_contacts(self):
assert len(dataset["contact"]) == 2
assert dataset["contact"][0]["name"] == "Test Contact 1"
assert dataset["contact"][0]["email"] == "[email protected]"
assert (
dataset["contact"][0]["identifier"]
== "https://orcid.org/0000-0002-9095-9201"
)
assert dataset["contact"][1]["name"] == "Test Contact 2"
assert dataset["contact"][1]["email"] == "[email protected]"
assert (
dataset["contact"][1]["identifier"]
== "https://orcid.org/0000-0002-9095-9202"
)

def test_multiple_publishers(self):

Expand All @@ -889,10 +901,12 @@ def test_multiple_publishers(self):
dct:publisher [ a org:Organization ;
skos:prefLabel "Test Publisher 1" ;
vcard:hasEmail <mailto:[email protected]> ;
dct:identifier "https://orcid.org/0000-0002-9095-9201" ;
foaf:name "Test Publisher 1" ],
[ a org:Organization ;
skos:prefLabel "Test Publisher 2" ;
vcard:hasEmail <mailto:[email protected]> ;
dct:identifier "https://orcid.org/0000-0002-9095-9202" ;
foaf:name "Test Publisher 2" ] ;
.
"""
Expand All @@ -906,8 +920,16 @@ def test_multiple_publishers(self):
assert len(dataset["publisher"]) == 2
assert dataset["publisher"][0]["name"] == "Test Publisher 1"
assert dataset["publisher"][0]["email"] == "[email protected]"
assert (
dataset["publisher"][0]["identifier"]
== "https://orcid.org/0000-0002-9095-9201"
)
assert dataset["publisher"][1]["name"] == "Test Publisher 2"
assert dataset["publisher"][1]["email"] == "[email protected]"
assert (
dataset["publisher"][1]["identifier"]
== "https://orcid.org/0000-0002-9095-9202"
)

def test_multiple_creators(self):

Expand Down

0 comments on commit 09c64c2

Please sign in to comment.