Skip to content

Commit

Permalink
tests: Add test for parsing resource temporal_resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Nov 13, 2023
1 parent ceb4af6 commit e5e237d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/dcatapchharvest/tests/fixtures/1901.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
</foaf:page>
<dcat:accessService rdf:resource="https://geoportal.sachsen.de/md/685a4409-a026-430e-afad-1fa2881f9700"/>
<dcat:accessService rdf:resource="https://example.com/my-great-data-service-1"/>
<dcat:temporalResolution rdf:datatype="http://www.w3.org/2001/XMLSchema#duration">P1D</dcat:temporalResolution>
</dcat:Distribution>
</dcat:distribution>
<dct:language>de</dct:language>
Expand All @@ -55,6 +56,7 @@
<vcard:fn>[email protected]</vcard:fn>
</vcard:Organization>
</dcat:contactPoint>
</dcat:contactPoint>
<dct:title xml:lang="de">Statistisches Jahrbuch der Schweiz 1901</dct:title>
<dct:spatial>Schweiz</dct:spatial>
<dcat:keyword xml:lang="rm">basas-statisticas-e-survistas</dcat:keyword>
Expand Down
1 change: 1 addition & 0 deletions ckanext/dcatapchharvest/tests/test_dcatap_ch_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def test_dataset_all_fields(self):
eq_(resource['license'], u'Creative Commons CC Zero License (cc-zero)')
eq_(resource['language'], [u'fr'])
eq_(resource['issued'], u'1900-12-31T00:00:00')
eq_(resource['temporal_resolution'], u'P1D')
eq_(resource['url'], u'https://www.bfs.admin.ch/asset/fr/hs-b-00.01-jb-1901')
assert 'download_url' not in resource, "download_url not available on resource"

Expand Down

0 comments on commit e5e237d

Please sign in to comment.