time_left considers flexible data retention periods

Also update tests
This commit is contained in:
Pea Tyczynska
2018-11-26 15:15:06 +00:00
parent c9908befc2
commit 9d8e602ac8
5 changed files with 21 additions and 6 deletions

View File

@@ -453,7 +453,7 @@ def test_should_show_notifications_for_a_service_with_next_previous(
"job_created_at, expected_message", [
("2016-01-10 11:09:00.000000+00:00", "Data available for 7 days"),
("2016-01-04 11:09:00.000000+00:00", "Data available for 1 day"),
("2016-01-03 11:09:00.000000+00:00", "Data available for 11 hours"),
("2016-01-03 11:09:00.000000+00:00", "Data available for 12 hours"),
("2016-01-02 23:59:59.000000+00:00", "Data no longer available")
]
)