Skip to content

Commit a8551ab

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent abd606b commit a8551ab

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎tests/test_time.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,14 @@ def test_precisedelta_bogus_call() -> None:
841841
def test_precisedelta_negative() -> None:
842842
# regression: negative timedeltas must keep their sign
843843
# https://github.com/python-humanize/humanize/issues/379
844-
assert humanize.precisedelta(dt.timedelta(seconds=-3661)) == "-1 hour, 1 minute and 1 second"
845-
assert humanize.precisedelta(dt.timedelta(seconds=3661)) == "1 hour, 1 minute and 1 second"
844+
assert (
845+
humanize.precisedelta(dt.timedelta(seconds=-3661))
846+
== "-1 hour, 1 minute and 1 second"
847+
)
848+
assert (
849+
humanize.precisedelta(dt.timedelta(seconds=3661))
850+
== "1 hour, 1 minute and 1 second"
851+
)
846852
assert (
847853
humanize.precisedelta(dt.timedelta(seconds=-3661), minimum_unit="minutes")
848854
== "-1 hour and 1.02 minutes"

0 commit comments

Comments
 (0)