Skip to content

Commit b12d628

Browse files
committed
fix: don't try to fetch files
1 parent a68bc11 commit b12d628

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_stac.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os.path
33
import shutil
44
import unittest
5+
from pathlib import Path
56
from tempfile import TemporaryDirectory
67

78
import pytest
@@ -185,6 +186,12 @@ def test_astraea(key: str) -> None:
185186

186187

187188
def 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)
204211
def 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:

0 commit comments

Comments
 (0)