diff options
Diffstat (limited to 'tests/interval/test_add_subtract.py')
-rw-r--r-- | tests/interval/test_add_subtract.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/interval/test_add_subtract.py b/tests/interval/test_add_subtract.py index 88525a3..d1f6036 100644 --- a/tests/interval/test_add_subtract.py +++ b/tests/interval/test_add_subtract.py @@ -6,8 +6,8 @@ import pendulum def test_dst_add(): start = pendulum.datetime(2017, 3, 7, tz="America/Toronto") end = start.add(days=6) - period = end - start - new_end = start + period + interval = end - start + new_end = start + interval assert new_end == end @@ -15,8 +15,8 @@ def test_dst_add(): def test_dst_add_non_variable_units(): start = pendulum.datetime(2013, 3, 31, 1, 30, tz="Europe/Paris") end = start.add(hours=1) - period = end - start - new_end = start + period + interval = end - start + new_end = start + interval assert new_end == end @@ -24,8 +24,8 @@ def test_dst_add_non_variable_units(): def test_dst_subtract(): start = pendulum.datetime(2017, 3, 7, tz="America/Toronto") end = start.add(days=6) - period = end - start - new_start = end - period + interval = end - start + new_start = end - interval assert new_start == start @@ -33,8 +33,8 @@ def test_dst_subtract(): def test_naive_subtract(): start = pendulum.naive(2013, 3, 31, 1, 30) end = start.add(hours=1) - period = end - start - new_end = start + period + interval = end - start + new_end = start + interval assert new_end == end @@ -43,7 +43,7 @@ def test_negative_difference_subtract(): start = pendulum.datetime(2018, 5, 28, 12, 34, 56, 123456) end = pendulum.datetime(2018, 1, 1) - period = end - start - new_end = start + period + interval = end - start + new_end = start + interval assert new_end == end |