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

Function test_invalid_date_range_cftime_inputs

xarray/tests/test_cftime_offsets.py:1296–1304  ·  view source on GitHub ↗
(
    start: str | None,
    end: str | None,
    periods: int | None,
    freq: str | None,
    inclusive: Literal["up"] | None,
)

Source from the content-addressed store, hash-verified

1294 ],
1295)
1296def test_invalid_date_range_cftime_inputs(
1297 start: str | None,
1298 end: str | None,
1299 periods: int | None,
1300 freq: str | None,
1301 inclusive: Literal["up"] | None,
1302) -> None:
1303 with pytest.raises(ValueError):
1304 date_range(start, end, periods, freq, inclusive=inclusive, use_cftime=True) # type: ignore[arg-type]
1305
1306
1307_CALENDAR_SPECIFIC_MONTH_END_TESTS = [

Callers

nothing calls this directly

Calls 1

date_rangeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…