@@ -74,10 +74,6 @@ def test_date_and_delta() -> None:
7474# Tests for the public interface of humanize.time
7575
7676
77- def nd_nomonths (d : dt .timedelta ) -> str :
78- return humanize .naturaldelta (d , months = False )
79-
80-
8177@pytest .mark .parametrize (
8278 "test_input, expected" ,
8379 [
@@ -88,7 +84,7 @@ def nd_nomonths(d: dt.timedelta) -> str:
8884 ],
8985)
9086def test_naturaldelta_nomonths (test_input : dt .timedelta , expected : str ) -> None :
91- assert nd_nomonths (test_input ) == expected
87+ assert humanize . naturaldelta (test_input , months = False ) == expected
9288
9389
9490@pytest .mark .parametrize (
@@ -173,10 +169,6 @@ def test_naturaltime(test_input: dt.datetime, expected: str) -> None:
173169 assert humanize .naturaltime (test_input ) == expected
174170
175171
176- def nt_nomonths (d : dt .datetime ) -> str :
177- return humanize .naturaltime (d , months = False )
178-
179-
180172@freeze_time ("2020-02-02" )
181173@pytest .mark .parametrize (
182174 "test_input, expected" ,
@@ -215,7 +207,7 @@ def nt_nomonths(d: dt.datetime) -> str:
215207 ],
216208)
217209def test_naturaltime_nomonths (test_input : dt .datetime , expected : str ) -> None :
218- assert nt_nomonths (test_input ) == expected
210+ assert humanize . naturaltime (test_input , months = False ) == expected
219211
220212
221213@freeze_time ("2020-02-02" )
0 commit comments