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

Function test_iso8601_decode

properties/test_encode_decode.py:69–74  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

67
68@given(dt=datetimes())
69def test_iso8601_decode(dt):
70 iso = dt.isoformat()
71 with warnings.catch_warnings():
72 warnings.filterwarnings("ignore", message=".*date/calendar/year zero.*")
73 parsed, _ = _parse_iso8601(type(dt), iso)
74 assert dt == parsed

Callers

nothing calls this directly

Calls 2

_parse_iso8601Function · 0.90
typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…