()
| 6 | |
| 7 | |
| 8 | def test_replace_tzinfo_dst_off(): |
| 9 | utc = pendulum.datetime(2016, 3, 27, 0, 30) # 30 min before DST turning on |
| 10 | in_paris = utc.in_tz("Europe/Paris") |
| 11 | |
| 12 | assert_datetime(in_paris, 2016, 3, 27, 1, 30, 0) |
| 13 | |
| 14 | in_paris = in_paris.replace(second=1) |
| 15 | |
| 16 | assert_datetime(in_paris, 2016, 3, 27, 1, 30, 1) |
| 17 | assert not in_paris.is_dst() |
| 18 | assert in_paris.offset == 3600 |
| 19 | assert in_paris.timezone_name == "Europe/Paris" |
| 20 | |
| 21 | |
| 22 | def test_replace_tzinfo_dst_transitioning_on(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…