()
| 83 | |
| 84 | |
| 85 | def test_range_months_overflow(): |
| 86 | dt1 = pendulum.datetime(2016, 1, 30, tz="America/Sao_Paulo") |
| 87 | dt2 = dt1.add(months=4) |
| 88 | |
| 89 | p = pendulum.interval(dt1, dt2) |
| 90 | r = list(p.range("months")) |
| 91 | |
| 92 | assert_datetime(r[0], 2016, 1, 30, 0, 0, 0) |
| 93 | assert_datetime(r[-1], 2016, 5, 30, 0, 0, 0) |
| 94 | |
| 95 | |
| 96 | def test_range_with_dst(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…