From 4b44e7562000be6d9e9165febc40f3c63c64ec20 Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Mon, 29 Jul 2024 10:27:11 +0200 Subject: [PATCH] Fix failing tests: segfault occured due to data not being available --- tests/test_datasets/test_fapar_lai.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_datasets/test_fapar_lai.py b/tests/test_datasets/test_fapar_lai.py index 44112aa..52e6bf7 100644 --- a/tests/test_datasets/test_fapar_lai.py +++ b/tests/test_datasets/test_fapar_lai.py @@ -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")) @@ -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()