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

Function test_parse_string_to_bounds_month_dec

xarray/tests/test_cftimeindex.py:397–403  ·  view source on GitHub ↗
(date_type, dec_days)

Source from the content-addressed store, hash-verified

395
396@requires_cftime
397def test_parse_string_to_bounds_month_dec(date_type, dec_days):
398 parsed = date_type(2, 12, 1)
399 expected_start = date_type(2, 12, 1)
400 expected_end = date_type(2, 12, dec_days, 23, 59, 59, 999999)
401 result_start, result_end = _parsed_string_to_bounds(date_type, "month", parsed)
402 assert result_start == expected_start
403 assert result_end == expected_end
404
405
406@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…