MCPcopy
hub / github.com/pydata/xarray / test_permute_dims_errors

Method test_permute_dims_errors

xarray/tests/test_namedarray.py:551–557  ·  view source on GitHub ↗
(
        self,
        target: NamedArray[Any, np.dtype[np.float32]],
    )

Source from the content-addressed store, hash-verified

549 assert actual.sizes == expected_sizes
550
551 def test_permute_dims_errors(
552 self,
553 target: NamedArray[Any, np.dtype[np.float32]],
554 ) -> None:
555 with pytest.raises(ValueError, match=r"'y'.*permuted list"):
556 dims = ["y"]
557 target.permute_dims(*dims)
558
559 @pytest.mark.parametrize(
560 "broadcast_dims,expected_ndim",

Callers

nothing calls this directly

Calls 1

permute_dimsMethod · 0.80

Tested by

no test coverage detected