Skip to content

Commit 6c5e76d

Browse files
committed
remove test_get_days_since_last_import_with_max_lookback - don't want to test it to cause more complexity
1 parent 0c788bb commit 6c5e76d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

scripts/tests/planning/test_tascomi_api_ingestion.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)