MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_parse_iso8601_duration

Function test_parse_iso8601_duration

tests/parsing/test_parse_iso8601.py:196–210  ·  view source on GitHub ↗
(
    text: str, expected: tuple[int, int, int, int, int, int, int, int]
)

Source from the content-addressed store, hash-verified

194 ],
195)
196def test_parse_iso8601_duration(
197 text: str, expected: tuple[int, int, int, int, int, int, int, int]
198) -> None:
199 parsed = parse_iso8601(text)
200
201 assert (
202 parsed.years,
203 parsed.months,
204 parsed.weeks,
205 parsed.remaining_days,
206 parsed.hours,
207 parsed.minutes,
208 parsed.remaining_seconds,
209 parsed.microseconds,
210 ) == expected
211
212
213def test_parse_iso8601_duration_invalid():

Callers

nothing calls this directly

Calls 1

parse_iso8601Function · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…