@@ -333,37 +333,6 @@ def test_naturaldelta_minimum_unit_explicit(minimum_unit, seconds, expected):
333333 assert humanize .naturaldelta (delta , minimum_unit = minimum_unit ) == expected
334334
335335
336- @pytest .mark .parametrize (
337- "test_input, when, expected" ,
338- [
339- (NOW , NOW , "a moment" ),
340- (NOW_UTC , NOW_UTC , "a moment" ),
341- ],
342- )
343- def test_naturaldelta_when_explicit (test_input , when , expected ):
344- # Act / Assert
345- assert humanize .naturaldelta (test_input , when = when ) == expected
346-
347-
348- @pytest .mark .parametrize (
349- "value, when" ,
350- [
351- (NOW_UTC , None ),
352- (NOW_UTC , NOW ),
353- (NOW_UTC_PLUS_01_00 , None ),
354- (NOW_UTC_PLUS_01_00 , NOW ),
355- ],
356- )
357- def test_naturaldelta_when_missing_tzinfo (value , when ):
358- """Subtraction `when - value` is not defined by the `datetime` module when
359- either operand has not timezone-info (`tz=None`) and raises a TypeError.
360- """
361-
362- # Act / Assert
363- with pytest .raises (TypeError ):
364- humanize .naturaldelta (value , when = when )
365-
366-
367336@pytest .mark .parametrize (
368337 "seconds, expected" ,
369338 [
0 commit comments