Commit c0cb67cf authored by James Southern's avatar James Southern

add fixes for linter that I failed to commit.

parent 3c5daf34
......@@ -86,11 +86,13 @@ def test_short_form_to_short_form():
test_period = SimpleTimePeriod.from_short_form("1y 2w 3d 10h 10m 15s")
assert test_period.as_short_form() == "1y 2w 3d 10h 10m 15s"
def test_short_form_big_to_short_form():
"""Ensure that output uses bigger units."""
test_period = SimpleTimePeriod.from_short_form("1y 2w 10d 10h 70m 65s")
assert test_period.as_short_form() == "1y 3w 3d 11h 11m 5s"
def test_short_form_to_str():
"""Ensure that a short form gives correct human text."""
test_period = SimpleTimePeriod.from_short_form("1y 2w 3d 10h 10m 15s")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment