()
| 94 | |
| 95 | |
| 96 | def test_range_with_dst(): |
| 97 | dt1 = pendulum.datetime(2016, 10, 14, tz="America/Sao_Paulo") |
| 98 | dt2 = dt1.add(weeks=1) |
| 99 | |
| 100 | p = pendulum.interval(dt1, dt2) |
| 101 | r = list(p.range("days")) |
| 102 | |
| 103 | assert_datetime(r[0], 2016, 10, 14, 0, 0, 0) |
| 104 | assert_datetime(r[2], 2016, 10, 16, 1, 0, 0) |
| 105 | assert_datetime(r[-1], 2016, 10, 21, 0, 0, 0) |
| 106 | |
| 107 | |
| 108 | def test_range_amount(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…