From 9470dcd6b257eca011e72a6da250b536573fb47f Mon Sep 17 00:00:00 2001 From: TomNicholas Date: Sun, 8 Dec 2024 22:15:20 -0500 Subject: [PATCH] mark tests as needed kerchunk dependency --- virtualizarr/tests/test_backend.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/virtualizarr/tests/test_backend.py b/virtualizarr/tests/test_backend.py index 672984a4..0c054a3b 100644 --- a/virtualizarr/tests/test_backend.py +++ b/virtualizarr/tests/test_backend.py @@ -309,6 +309,7 @@ def test_virtualizarr_vs_local_nisar(self, hdf_backend): xrt.assert_equal(dsXR, dsV) +@requires_kerchunk def test_open_empty_group(empty_netcdf4_file): vds = open_virtual_dataset(empty_netcdf4_file, indexes={}) assert isinstance(vds, xr.Dataset) @@ -316,6 +317,7 @@ def test_open_empty_group(empty_netcdf4_file): xrt.assert_identical(vds, expected) +@requires_kerchunk class TestOpenVirtualDatasetHDFGroup: def test_open_subgroup(self, netcdf4_file_with_data_in_multiple_groups): vds = open_virtual_dataset( @@ -343,10 +345,6 @@ def test_open_root_group_by_default( assert isinstance(vds["foo"].data, ManifestArray) assert vds["foo"].shape == (3,) - def test_raise_on_nonexistent_group(self): ... - - def test_open_empty_group(self): ... - @requires_kerchunk class TestLoadVirtualDataset: