diff --git a/tests/test_variantdata.py b/tests/test_variantdata.py index da080e36..b1bfd51d 100644 --- a/tests/test_variantdata.py +++ b/tests/test_variantdata.py @@ -670,6 +670,14 @@ def test_sgkit_ancestor(small_sd_fixture, tmp_path): class TestVariantDataErrors: + def test_bad_zarr_spec(self): + ds = zarr.group() + ds["call_genotype"] = zarr.array(np.zeros(10, dtype=np.int8)) + with pytest.raises( + ValueError, match="Expecting a VCF Zarr object with 3D call_genotype array" + ): + tsinfer.VariantData(ds, np.zeros(10, dtype="