()
| 83 | |
| 84 | |
| 85 | def test_as_timedelta(): |
| 86 | pi = pendulum.duration(seconds=3456.123456) |
| 87 | assert_duration(pi, 0, 0, 0, 0, 0, 57, 36, 123456) |
| 88 | delta = pi.as_timedelta() |
| 89 | assert isinstance(delta, timedelta) |
| 90 | assert delta.total_seconds() == 3456.123456 |
| 91 | assert delta.seconds == 3456 |
| 92 | |
| 93 | |
| 94 | def test_float_years_and_months(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…