File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 22import os .path
33import shutil
44import unittest
5+ from pathlib import Path
56from tempfile import TemporaryDirectory
67
78import pytest
@@ -185,6 +186,12 @@ def test_astraea(key: str) -> None:
185186
186187
187188def test_raster_footprint_geometry () -> None :
189+ path = test_data .get_path ("MYD10A2.A2022025.h10v05.061.2022035071201.hdf" )
190+ if not Path (path ).exists ():
191+ pytest .skip (
192+ f"Skipping { path } because it does not exist and we can't fetch "
193+ "it from Microsoft anymore"
194+ )
188195 hdf_href = test_data .get_external_data (
189196 "MYD10A2.A2022025.h10v05.061.2022035071201.hdf"
190197 )
@@ -202,6 +209,12 @@ def test_raster_footprint_geometry() -> None:
202209
203210@pytest .mark .parametrize ("file_name" , PROJECTION_EDGE_FILES )
204211def test_raster_footprint_at_projection_edge (file_name : str ) -> None :
212+ path = test_data .get_path (file_name )
213+ if not Path (path ).exists ():
214+ pytest .skip (
215+ f"Skipping { file_name } because it does not exist and we can't "
216+ "fetch it from Microsoft anymore"
217+ )
205218 hdf_href = test_data .get_external_data (file_name )
206219 _ = test_data .get_external_data (f"{ file_name } .xml" )
207220 with TemporaryDirectory () as temporary_directory :
You can’t perform that action at this time.
0 commit comments