File tree 1 file changed +2
-2
lines changed
_delphi_utils_python/tests/validator
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def test_half_padding(self):
48
48
ref_df , test_df , ref_date , ref_date )
49
49
50
50
# Check it only takes missing dates - so the last 5 dates
51
- assert new_ref_df .time_value .max () == datetime .strptime ("2021-01-11" ,
51
+ assert new_ref_df .time_value .max (). date () == datetime .strptime ("2021-01-11" ,
52
52
"%Y-%m-%d" ).date ()
53
53
assert new_ref_df .shape [0 ] == 11
54
54
assert new_ref_df ["val" ].iloc [5 ] == 2
@@ -71,7 +71,7 @@ def test_full_padding(self):
71
71
ref_df , test_df , ref_date , ref_date )
72
72
73
73
# Check it only takes missing dates up to the day before the reference
74
- assert new_ref_df .time_value .max () == datetime .strptime ("2021-01-15" ,
74
+ assert new_ref_df .time_value .max (). date () == datetime .strptime ("2021-01-15" ,
75
75
"%Y-%m-%d" ).date ()
76
76
assert new_ref_df .shape [0 ] == 15
77
77
assert new_ref_df ["val" ].iloc [5 ] == 2
You can’t perform that action at this time.
0 commit comments