Skip to content

Commit f8129a2

Browse files
committed
Fix timeformat unit tests
1 parent 814f020 commit f8129a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cloudbot/util/test/test_timeformat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cloudbot.util.timeformat import format_time, time_since, timeuntil
1+
from cloudbot.util.timeformat import format_time, time_since, time_until
22

33
from datetime import datetime, timezone
44

@@ -33,6 +33,6 @@ def test_timeuntil():
3333
now = datetime(2010, 4, 12, 12, 30, 0)
3434
future = datetime(2010, 5, 15, 1, 50, 0)
3535
# basic
36-
assert timeuntil(future, now) == "1 month and 2 days"
36+
assert time_until(future, now) == "1 month and 2 days"
3737
# count
38-
assert timeuntil(future, now, count=3) == "1 month, 2 days and 13 hours"
38+
assert time_until(future, now, count=3) == "1 month, 2 days and 13 hours"

0 commit comments

Comments
 (0)