(option, value)
| 299 | |
| 300 | @pytest.mark.parametrize(("option", "value"), [("offset", "5s"), ("origin", "start")]) |
| 301 | def test_non_tick_option_warning(option, value) -> None: |
| 302 | cftime_index = xr.date_range("2000", periods=5, use_cftime=True) |
| 303 | da_cftime = da(cftime_index) |
| 304 | kwargs = {option: value} |
| 305 | with pytest.warns(RuntimeWarning, match=option): |
| 306 | da_cftime.resample(time="ME", **kwargs) |