Skip to content

Commit

Permalink
tests: Add additional test for conforms_to field
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Nov 22, 2023
1 parent 26fc70c commit 5a8a026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/geocat/tests/test_dataset_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ def test_fields_values(self):
self.assertEquals(set(['de', 'fr', 'it', 'en']), set(dataset.get('language')))

# conforms to
self.assertEquals(["https://www.meteoschweiz.admin.ch/home/mess-und-prognosesysteme/bodenstationen/data.zip"],
self.assertEquals(["https://www.vs.ch/documents/17311/472431/Reserves_forestieres_Catalogue_objets"],
dataset['conforms_to'])
self.assertEquals(1, len(dataset['conforms_to']))
self.assertIsInstance(dataset['conforms_to'], list)

# relations
self.assertTrue(hasattr(dataset['relations'], '__iter__'))
Expand Down

0 comments on commit 5a8a026

Please sign in to comment.