()
| 889 | |
| 890 | |
| 891 | def test_groupby_dataset_errors() -> None: |
| 892 | data = create_test_data() |
| 893 | with pytest.raises(TypeError, match=r"`group` must be"): |
| 894 | data.groupby(np.arange(10)) # type: ignore[arg-type,unused-ignore] |
| 895 | with pytest.raises(ValueError, match=r"length does not match"): |
| 896 | data.groupby(data["dim1"][:3]) |
| 897 | with pytest.raises(TypeError, match=r"`group` must be"): |
| 898 | data.groupby(data.coords["dim1"].to_index()) # type: ignore[arg-type] |
| 899 | |
| 900 | |
| 901 | @pytest.mark.parametrize("use_flox", [True, False]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…