diff --git a/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py b/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py index 43a782e..fe9df2d 100644 --- a/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py +++ b/ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py @@ -81,8 +81,11 @@ def test_graph_from_dataset(self): for link in resource_dict.get("documentation", []): assert self._triple(g, distribution, FOAF.page, URIRef(link)) - eq_(len([t for t in g.triples((distribution, DCAT.accessService, None))]), 2) - for link in distribution.get("access_services", []): + eq_( + len([t for t in g.triples((distribution, DCAT.accessService, None))]), + len(resource_dict.get("access_services", [])) + ) + for link in resource_dict.get("access_services", []): assert self._triple(g, distribution, DCAT.accessService, URIRef(link)) # e2c50e70-67ad-4f86-bb1b-3f93867eadaa