diff --git a/ckanext/dcatapchharvest/tests/fixtures/dataset.json b/ckanext/dcatapchharvest/tests/fixtures/dataset.json index bfa0ec4..f9eafe2 100644 --- a/ckanext/dcatapchharvest/tests/fixtures/dataset.json +++ b/ckanext/dcatapchharvest/tests/fixtures/dataset.json @@ -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" }, { @@ -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" }, { diff --git a/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py b/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py index 8e3e77b..1976f13 100644 --- a/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py +++ b/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py @@ -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 @@ -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":