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

Function test_parse_string_to_bounds_year

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

Source from the content-addressed store, hash-verified

375
376@requires_cftime
377def test_parse_string_to_bounds_year(date_type, dec_days):
378 parsed = date_type(2, 2, 10, 6, 2, 8, 1)
379 expected_start = date_type(2, 1, 1)
380 expected_end = date_type(2, 12, dec_days, 23, 59, 59, 999999)
381 result_start, result_end = _parsed_string_to_bounds(date_type, "year", parsed)
382 assert result_start == expected_start
383 assert result_end == expected_end
384
385
386@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…