mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 22:42:28 -05:00
rename days_ago_to_start to limit_days
consistency with the rest of the app
This commit is contained in:
@@ -121,13 +121,13 @@ def test_should_delete_inbound_sms_according_to_data_retention(notify_db_session
|
||||
# four deleted for the 3-day service, two for the default seven days one, one for the 30 day
|
||||
assert deleted_count == 7
|
||||
assert {
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(short_retention_service.id, days_ago_to_start=None)
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(short_retention_service.id, limit_days=None)
|
||||
} == set(dates[:1])
|
||||
assert {
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(no_retention_service.id, days_ago_to_start=None)
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(no_retention_service.id, limit_days=None)
|
||||
} == set(dates[:3])
|
||||
assert {
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(long_retention_service.id, days_ago_to_start=None)
|
||||
x.created_at for x in dao_get_inbound_sms_for_service(long_retention_service.id, limit_days=None)
|
||||
} == set(dates[:4])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user