Skip to content

Commit

Permalink
test: adjust test for case format is not set and iana media type mapp…
Browse files Browse the repository at this point in the history
…ing is used
  • Loading branch information
sarusarah committed Sep 29, 2023
1 parent 12c9d8b commit 83133fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/dcatapchharvest/tests/fixtures/dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
],
"rights": "http://dcat-ap.ch/vocabulary/licenses/terms_by_ask",
"license": "http://dcat-ap.ch/vocabulary/licenses/cc-by/4.0",
"format": "JSON"
"media_type": "1d-interleaved-parityfec"
}
],
"extras": [
Expand Down
4 changes: 2 additions & 2 deletions ckanext/dcatapchharvest/tests/test_dcatap_ch_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def test_graph_from_dataset(self):
if resource_dict.get('format') == "HTML":
assert self._triple(g, distribution, DCT['format'], URIRef("http://publications.europa.eu/resource/authority/file-type/HTML"))

if resource_dict.get('format') == "JSON":
assert self._triple(g, distribution, DCT['format'], URIRef("http://publications.europa.eu/resource/authority/file-type/JSON"))
if resource_dict.get('format') == "1d-interleaved-parityfec":
assert self._triple(g, distribution, DCT['format'], URIRef("http://www.iana.org/assignments/video/1d-interleaved-parityfec"))


def test_graph_from_dataset_uri(self):
Expand Down

0 comments on commit 83133fc

Please sign in to comment.