(
text: str, expected: tuple[int, int, int, int, int, int, int, int]
)
| 194 | ], |
| 195 | ) |
| 196 | def 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 | |
| 213 | def test_parse_iso8601_duration_invalid(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…