Skip to content

Commit 5e706e4

Browse files
committed
Move timedelta tests into the section with the other timedelta tests.
1 parent 70ff707 commit 5e706e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_time.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ def test_precisedelta_multiple_units(
539539
"5 days and 4.50 hours",
540540
),
541541
(dt.timedelta(days=5, hours=4, seconds=30 * 60), "days", "%0.2f", "5.19 days"),
542+
(dt.timedelta(days=31), "days", "%d", "1 month"),
543+
(dt.timedelta(days=31.01), "days", "%d", "1 month and 1 day"),
544+
(dt.timedelta(days=92), "days", "%d", "3 months"),
542545
(dt.timedelta(days=120), "months", "%0.2f", "3.93 months"),
543546
(dt.timedelta(days=183), "years", "%0.1f", "0.5 years"),
544547
(0.01, "seconds", "%0.3f", "0.010 seconds"),
@@ -559,9 +562,6 @@ def test_precisedelta_multiple_units(
559562
"%.4f",
560563
"23 hours, 59 minutes and 59.9990 seconds",
561564
),
562-
(dt.timedelta(days=31), "days", "%d", "1 month"),
563-
(dt.timedelta(days=31.01), "days", "%d", "1 month and 1 day"),
564-
(dt.timedelta(days=92), "days", "%d", "3 months"),
565565
],
566566
)
567567
def test_precisedelta_custom_format(

0 commit comments

Comments
 (0)