Skip to content

Commit

Permalink
fix: Update license and right values for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Jul 30, 2024
1 parent ce48459 commit da86232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ckanext/dcatapchharvest/tests/fixtures/dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
"https://example.com/documentation-resource-1",
"https://example.com/documentation-resource-2"
],
"rights": "Creative Commons Zero 1.0 Universell (CC0 1.0)",
"license": "NonCommercialAllowed-CommercialAllowed-ReferenceNotRequired",
"rights": "http://www.opendefinition.org/licenses/cc-zero",
"license": "https://opendata.swiss/terms-of-use/#terms_open",
"format": "CSV"
},
{
Expand All @@ -133,7 +133,7 @@
"https://example.com/documentation-resource-2"
],
"rights": "http://dcat-ap.ch/vocabulary/licenses/terms_by",
"license": "NonCommercialAllowed-CommercialAllowed-ReferenceRequired",
"license": "https://opendata.swiss/en/terms-of-use/#terms_by",
"format": "HTML"
},
{
Expand Down
6 changes: 3 additions & 3 deletions ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def test_graph_from_dataset(self):
assert self._triple(g, distribution, DCAT.accessService, URIRef(link))

# e2c50e70-67ad-4f86-bb1b-3f93867eadaa
if resource_dict.get('rights') == 'Creative Commons Zero 1.0 Universal (CC0 1.0)':
if resource_dict.get('rights') == "http://www.opendefinition.org/licenses/cc-zero":
assert self._triple(g, distribution, DCT.rights, URIRef("https://creativecommons.org/publicdomain/zero/1.0/"))

if resource_dict.get('license') == 'https://opendata.swiss/terms-of-use/#terms_open':
if resource_dict.get('license') == "https://opendata.swiss/terms-of-use/#terms_open":
assert self._triple(g, distribution, DCT.license, URIRef("http://dcat-ap.ch/vocabulary/licenses/terms_open"))

# 28e75e40-e1a1-497b-a1b9-8c1834d60201
Expand All @@ -127,7 +127,7 @@ def test_graph_from_dataset(self):
if resource_dict.get('rights') == "https://opendata.swiss/terms-of-use#terms_by_ask":
assert self._triple(g, distribution, DCT.rights, URIRef("http://dcat-ap.ch/vocabulary/licenses/terms_by_ask"))

if resource_dict.get('rights') == " http://www.opendefinition.org/licenses/cc-by/":
if resource_dict.get('rights') == "http://www.opendefinition.org/licenses/cc-by/":
assert self._triple(g, distribution, DCT.rights, URIRef("https://creativecommons.org/licenses/by/4.0/"))

if resource_dict.get('format') == "CSV":
Expand Down

0 comments on commit da86232

Please sign in to comment.