(self, dtype)
| 3168 | assert expected == actual |
| 3169 | |
| 3170 | def test_pad(self, dtype): |
| 3171 | array = np.linspace(0, 5, 10).astype(dtype) * unit_registry.m |
| 3172 | |
| 3173 | data_array = xr.DataArray(data=array, dims="x") |
| 3174 | units = extract_units(data_array) |
| 3175 | |
| 3176 | expected = attach_units(strip_units(data_array).pad(x=(2, 3)), units) |
| 3177 | actual = data_array.pad(x=(2, 3)) |
| 3178 | |
| 3179 | assert_units_equal(expected, actual) |
| 3180 | assert_equal(expected, actual) |
| 3181 | |
| 3182 | @pytest.mark.parametrize( |
| 3183 | "variant", |
nothing calls this directly
no test coverage detected