@@ -689,7 +689,7 @@ def test_partition_start_end_float(self):
689689 def test_partition_start_end_datetime (self ):
690690 start = pd .to_datetime ("2020-01-01 03:00" , utc = True )
691691 end = pd .to_datetime ("2020-01-01 09:00" , utc = True )
692- partition = pd .to_timedelta ("3H " )
692+ partition = pd .to_timedelta ("3h " )
693693 reference = pd .to_datetime ("2020-01-01 02:00" , utc = True )
694694 out = BaseDataSourceForTesting ._partition_start_end (
695695 start , end , partition , reference
@@ -705,15 +705,15 @@ def test_partition_start_end_datetime(self):
705705 def test__is_cached_false (self , tmp_path ):
706706 cache_dir = tmp_path / ".cache"
707707 source = BaseDataSourceForTesting (
708- DatetimeIndexConverter (), cache = cache_dir , cache_size = "1H "
708+ DatetimeIndexConverter (), cache = cache_dir , cache_size = "1h "
709709 )
710710 assert cache_dir .exists ()
711711 assert source ._is_cached ("filename" ) is False
712712
713713 def test__is_cached_true (self , tmp_path ):
714714 cache_dir = tmp_path / ".cache"
715715 source = BaseDataSourceForTesting (
716- DatetimeIndexConverter (), cache = cache_dir , cache_size = "1H "
716+ DatetimeIndexConverter (), cache = cache_dir , cache_size = "1h "
717717 )
718718 assert cache_dir .exists ()
719719 (cache_dir / "filename" ).touch ()
@@ -722,7 +722,7 @@ def test__is_cached_true(self, tmp_path):
722722 def test__cache_read (self , tmp_path ):
723723 cache_dir = tmp_path / ".cache"
724724 source = BaseDataSourceForTesting (
725- DatetimeIndexConverter (), cache = cache_dir , cache_size = "1H "
725+ DatetimeIndexConverter (), cache = cache_dir , cache_size = "1h "
726726 )
727727
728728 df = pd .DataFrame (data = {"filename" : [2 , 4 , 6 ], "a" : [1 , 2 , 3 ]})
@@ -735,7 +735,7 @@ def test__cache_read(self, tmp_path):
735735 def test__cache_write (self , tmp_path ):
736736 cache_dir = tmp_path / ".cache"
737737 source = BaseDataSourceForTesting (
738- DatetimeIndexConverter (), cache = cache_dir , cache_size = "1H "
738+ DatetimeIndexConverter (), cache = cache_dir , cache_size = "1h "
739739 )
740740
741741 df = pd .DataFrame (data = {"a" : [1 , 2 , 3 ]}, index = [2 , 4 , 6 ])
@@ -967,7 +967,7 @@ def test__init__(self, tmp_path):
967967 assert source ._get_kwargs == {"convert_date" : False , "raise_empty" : True }
968968 assert isinstance (source ._index_converter , DatetimeIndexConverter )
969969 assert source ._cache == Path (cache_dir )
970- assert source ._cache_size == pd .to_timedelta ("24H " )
970+ assert source ._cache_size == pd .to_timedelta ("24h " )
971971
972972 def test__init__integer (self ):
973973 drio_client = Mock ()
@@ -1579,15 +1579,15 @@ def test_to_universal_index_arraylike(self):
15791579 np .testing .assert_array_equal (out , expect )
15801580
15811581 def test_to_universal_delta (self ):
1582- out = DatetimeIndexConverter ().to_universal_delta ("3H " )
1583- expect = pd .to_timedelta ("3H " )
1582+ out = DatetimeIndexConverter ().to_universal_delta ("3h " )
1583+ expect = pd .to_timedelta ("3h " )
15841584 assert out == expect
15851585
15861586 def test_to_universal_delta_arraylike (self ):
15871587 out = DatetimeIndexConverter ().to_universal_delta (
1588- ["3H " , "24H " , pd .to_timedelta ("2D" )]
1588+ ["3h " , "24h " , pd .to_timedelta ("2D" )]
15891589 )
1590- expect = pd .to_timedelta (["3H " , "24H " , pd .to_timedelta ("2D" )])
1590+ expect = pd .to_timedelta (["3h " , "24h " , pd .to_timedelta ("2D" )])
15911591 np .testing .assert_array_equal (out , expect )
15921592
15931593 def test_to_native_index (self ):
0 commit comments