Skip to content

Commit

Permalink
Fix failing tests: segfault occured due to data not being available
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jul 29, 2024
1 parent 2a447c3 commit 4b44e75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_datasets/test_fapar_lai.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def test_ingest(self, dummy_dir):
with xr.open_mfdataset((ingest_dir / "fapar-lai").glob("*.nc")) as ds:
assert isinstance(ds, xr.Dataset)

@pytest.mark.slow # depends on ingested data being available
def test_load(self):
"""Test load function."""
times = TimeBounds(np.datetime64("2019-01-01"), np.datetime64("2019-01-31"))
Expand All @@ -123,6 +124,7 @@ def test_load(self):
np.testing.assert_allclose(ds.latitude.values, expected_lat)
np.testing.assert_allclose(ds.longitude.values, expected_lon)

@pytest.mark.slow # depends on ingested data being available
def test_convert(self):
"""Test convert function."""
lai_dataset = FaparLAI()
Expand Down

0 comments on commit 4b44e75

Please sign in to comment.