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

Function test_to_cftime_datetime

xarray/tests/test_cftime_offsets.py:340–346  ·  view source on GitHub ↗
(calendar, argument, expected_date_args)

Source from the content-addressed store, hash-verified

338 ids=_id_func,
339)
340def test_to_cftime_datetime(calendar, argument, expected_date_args):
341 date_type = get_date_type(calendar)
342 expected = date_type(*expected_date_args)
343 if isinstance(argument, tuple):
344 argument = date_type(*argument)
345 result = to_cftime_datetime(argument, calendar=calendar)
346 assert result == expected
347
348
349def test_to_cftime_datetime_error_no_calendar():

Callers

nothing calls this directly

Calls 3

get_date_typeFunction · 0.90
to_cftime_datetimeFunction · 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…