Skip to content

Commit

Permalink
tests: Fix URIs that were accidentally made https
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Apr 8, 2024
1 parent 3b40bec commit 468ac65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ckanext/dcatapchharvest/tests/fixtures/1901.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<dcat:distribution>
<dcat:Distribution rdf:about="https://opendata.swiss/dataset/7451e012-64b2-4bbc-af20-a0e2bc61b585/resource/c8ec6ca0-6923-4cf3-92f2-95a10e6f8e25">
<dct:title xml:lang="fr">Annuaire statistique de la Suisse 1901</dct:title>
<dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/text/html"/>
<dcat:mediaType rdf:resource="http://www.iana.org/assignments/media-types/text/html"/>
<dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">1900-12-31T00:00:00</dct:issued>
<dcat:accessURL rdf:resource="https://www.bfs.admin.ch/asset/fr/hs-b-00.01-jb-1901"/>
<dct:language>fr</dct:language>
Expand Down Expand Up @@ -37,13 +37,13 @@
<dcat:qualifiedRelation>
<dcat:Relationship>
<dct:relation rdf:resource="http://example.org/Original987"/>
<dcat:hadRole rdf:resource="https://www.iana.org/assignments/media-types/relation/original"/>
<dcat:hadRole rdf:resource="http://www.iana.org/assignments/media-types/relation/original"/>
</dcat:Relationship>
</dcat:qualifiedRelation>
<dcat:qualifiedRelation>
<dcat:Relationship>
<dct:relation rdf:resource="http://example.org/Related486"/>
<dcat:hadRole rdf:resource="https://www.iana.org/assignments/media-types/relation/related"/>
<dcat:hadRole rdf:resource="http://www.iana.org/assignments/media-types/relation/related"/>
</dcat:Relationship>
</dcat:qualifiedRelation>
<dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">1900-12-31T00:00:00</dct:issued>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dcat:Dataset rdf:about="https://opendata.swiss/dataset/7451e012-64b2-4bbc-af20-a0e2bc61b585">
<dcat:distribution>
<dcat:Distribution>
<dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/text/html"/>
<dcat:mediaType rdf:resource="http://www.iana.org/assignments/media-types/text/html"/>
<dcterms:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/HTML"/>
</dcat:Distribution>
</dcat:distribution>
Expand All @@ -16,7 +16,7 @@
</dcat:distribution>
<dcat:distribution>
<dcat:Distribution>
<dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/text/plain"/>
<dcat:mediaType rdf:resource="http://www.iana.org/assignments/media-types/text/plain"/>
<dcterms:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/GRID_ASCII"/>
</dcat:Distribution>
</dcat:distribution>
Expand Down
4 changes: 2 additions & 2 deletions ckanext/dcatapchharvest/tests/test_dcatap_ch_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ def test_dataset_all_fields(self):
qualified_relations[0],
{
"relation": "http://example.org/Original987",
"had_role": "https://www.iana.org/assignments/media-types/relation/original"
"had_role": "http://www.iana.org/assignments/media-types/relation/original"
}
)
eq_(
qualified_relations[1],
{
"relation": "http://example.org/Related486",
"had_role": "https://www.iana.org/assignments/media-types/relation/related"
"had_role": "http://www.iana.org/assignments/media-types/relation/related"
}
)

Expand Down

0 comments on commit 468ac65

Please sign in to comment.