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

Function test_calendar_year_length

xarray/tests/test_cftime_offsets.py:1372–1378  ·  view source on GitHub ↗
(
    calendar: str, start: str, end: str, expected_number_of_days: int
)

Source from the content-addressed store, hash-verified

1370 ],
1371)
1372def test_calendar_year_length(
1373 calendar: str, start: str, end: str, expected_number_of_days: int
1374) -> None:
1375 result = date_range(
1376 start, end, freq="D", inclusive="left", calendar=calendar, use_cftime=True
1377 )
1378 assert len(result) == expected_number_of_days
1379
1380
1381@pytest.mark.parametrize("freq", ["YE", "ME", "D"])

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…