()
| 16 | |
| 17 | |
| 18 | def test_all(): |
| 19 | start_date = pendulum.datetime(2012, 1, 1) |
| 20 | interval = pendulum.interval( |
| 21 | start=start_date, |
| 22 | end=start_date.add(years=1, months=1, days=1, seconds=1, microseconds=1), |
| 23 | ) |
| 24 | assert interval.in_words() == "1 year 1 month 1 day 1 second" |
| 25 | |
| 26 | |
| 27 | def test_in_french(): |