@@ -108,15 +108,12 @@ def test_iiif_uris(mock_get_manifest):
108108 iiif_uris = "https://annotations.allmaps.org/manifests/a0d6d3379cfd9f0a" ,
109109 )
110110 assert isinstance (downloader , IIIFDownloader )
111- assert (
112- downloader .iiif [0 ].id
113- == "https://annotations.allmaps.org/manifests/a0d6d3379cfd9f0a"
114- )
111+ assert downloader .iiif [0 ].id is None
115112
116113
117114def test_missing_id (mock_get_manifest ):
118- with pytest . raises ( ValueError , match = "missing an 'id' field" ):
119- IIIFDownloader ( "annotationpage3.json" , 3 )
115+ iiif_downloader = IIIFDownloader ( "annotationpage3.json" , 3 )
116+ assert isinstance ( iiif_downloader , IIIFDownloader ) # we want it to load fine
120117
121118
122119def test_save_georeferenced_maps (tmp_path , mock_get_manifest , mock_download_image ):
@@ -167,17 +164,17 @@ def test_save_georeferenced_map_from_str(
167164 assert src .crs .to_epsg () == 4326
168165
169166
170- def test_save_georeferenced_map_value_error (
171- tmp_path , mock_get_manifest , mock_download_image
172- ):
173- downloader = IIIFDownloader (
174- [],
175- )
176- with pytest .raises (ValueError , match = "missing an 'id' field" ):
177- downloader .save_georeferenced_map (
178- "annotationpage3 .json" ,
179- path_save = tmp_path ,
180- )
167+ # def test_save_georeferenced_map_value_error(
168+ # tmp_path, mock_get_manifest, mock_download_image
169+ # ):
170+ # downloader = IIIFDownloader(
171+ # [],
172+ # )
173+ # with pytest.raises(ValueError, match="missing an 'id' field"):
174+ # downloader.save_georeferenced_map(
175+ # "annotationpage3_missing_id .json",
176+ # path_save=tmp_path,
177+ # )
181178
182179
183180def test_save_maps (tmp_path , mock_download_image , mock_get_manifest ):
@@ -238,15 +235,15 @@ def test_save_map_from_str(tmp_path, mock_download_image, mock_get_manifest):
238235 assert all ([file in os .listdir (tmp_path ) for file in files ])
239236
240237
241- def test_save_map_value_error (tmp_path , mock_download_image , mock_get_manifest ):
242- downloader = IIIFDownloader (
243- [],
244- )
245- with pytest .raises (ValueError , match = "missing an 'id' field" ):
246- downloader .save_map (
247- "annotationpage3 .json" ,
248- path_save = tmp_path ,
249- )
238+ # def test_save_map_value_error(tmp_path, mock_download_image, mock_get_manifest):
239+ # downloader = IIIFDownloader(
240+ # [],
241+ # )
242+ # with pytest.raises(ValueError, match="missing an 'id' field"):
243+ # downloader.save_map(
244+ # "annotationpage3_missing_id .json",
245+ # path_save=tmp_path,
246+ # )
250247
251248
252249def test_save_map_unknown_class_error (tmp_path , mock_download_image , mock_get_manifest ):
0 commit comments