Skip to content

Commit

Permalink
Use constant test values
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 24, 2024
1 parent 56ffcc8 commit 7941145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def test_naturaldelta_nomonths(test_input: dt.timedelta, expected: str) -> None:
(1, "a second"),
(23.5, "23 seconds"),
(30, "30 seconds"),
(dt.datetime.now() - dt.datetime.now(), "a moment"),
(dt.timedelta(microseconds=13), "a moment"),
(dt.timedelta(microseconds=-13), "a moment"),
(dt.timedelta(minutes=1, seconds=30), "a minute"),
(dt.timedelta(minutes=2), "2 minutes"),
(dt.timedelta(hours=1, minutes=30, seconds=30), "an hour"),
Expand Down

0 comments on commit 7941145

Please sign in to comment.