MCPcopy Create free account
hub / github.com/pydata/xarray / test_parse_string_to_bounds_month_feb

Function test_parse_string_to_bounds_month_feb

xarray/tests/test_cftimeindex.py:387–393  ·  view source on GitHub ↗
(date_type, feb_days)

Source from the content-addressed store, hash-verified

385
386@requires_cftime
387def test_parse_string_to_bounds_month_feb(date_type, feb_days):
388 parsed = date_type(2, 2, 10, 6, 2, 8, 1)
389 expected_start = date_type(2, 2, 1)
390 expected_end = date_type(2, 2, feb_days, 23, 59, 59, 999999)
391 result_start, result_end = _parsed_string_to_bounds(date_type, "month", parsed)
392 assert result_start == expected_start
393 assert result_end == expected_end
394
395
396@requires_cftime

Callers

nothing calls this directly

Calls 2

_parsed_string_to_boundsFunction · 0.90
date_typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…