()
| 34 | |
| 35 | |
| 36 | def test_replace_tzinfo_dst_on(): |
| 37 | utc = pendulum.datetime(2016, 10, 30, 0, 30) # 30 min before DST turning off |
| 38 | in_paris = utc.in_tz("Europe/Paris") |
| 39 | |
| 40 | assert_datetime(in_paris, 2016, 10, 30, 2, 30, 0) |
| 41 | |
| 42 | in_paris = in_paris.replace(second=1) |
| 43 | |
| 44 | assert_datetime(in_paris, 2016, 10, 30, 2, 30, 1) |
| 45 | assert in_paris.is_dst() |
| 46 | assert in_paris.offset == 7200 |
| 47 | assert in_paris.timezone_name == "Europe/Paris" |
| 48 | |
| 49 | |
| 50 | def test_replace_tzinfo_dst_transitioning_off(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…