File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,3 @@ def test_get_days_since_last_import_two_days(self):
1717 with freeze_time (today ):
1818 actual_response = get_days_since_last_import (last_import_date )
1919 assert actual_response == ["2018-03-13" , "2018-03-14" ]
20-
21- def test_get_days_since_last_import_with_max_lookback (self ):
22- """Test that max_lookback_days limits the number of days queried"""
23- today = "2025-01-15"
24- last_import_date = "20220720" # more than 60 days ago compared with today
25- max_lookback_days = 7
26-
27- with freeze_time (today ):
28- actual_response = get_days_since_last_import (
29- last_import_date , max_lookback_days
30- )
31- # Should only return the last 7 days, not all days since last import
32- expected_days = [
33- "2025-01-08" ,
34- "2025-01-09" ,
35- "2025-01-10" ,
36- "2025-01-11" ,
37- "2025-01-12" ,
38- "2025-01-13" ,
39- "2025-01-14" ,
40- ]
41- assert actual_response == expected_days
You can’t perform that action at this time.
0 commit comments