diff --git a/tests/app/celery/test_nightly_tasks.py b/tests/app/celery/test_nightly_tasks.py index 0599799e4..5224e3937 100644 --- a/tests/app/celery/test_nightly_tasks.py +++ b/tests/app/celery/test_nightly_tasks.py @@ -287,7 +287,7 @@ def test_delete_notifications_task_calls_task_for_services_that_have_sent_notifi nothing_to_delete_sms_template = create_template(service_nothing_to_delete, template_type='sms') nothing_to_delete_email_template = create_template(service_nothing_to_delete, template_type='email') - # will be deleted as service has no custom retention, but past our default 7 days + # will be deleted as service has no custom retention, but past our default retention period create_notification(service_will_delete_1.templates[0], created_at=datetime.now() - timedelta(days=8)) create_notification(service_will_delete_2.templates[0], created_at=datetime.now() - timedelta(days=8)) diff --git a/tests/app/inbound_sms/test_rest.py b/tests/app/inbound_sms/test_rest.py index 0b7cd71f2..f4fb4ff1e 100644 --- a/tests/app/inbound_sms/test_rest.py +++ b/tests/app/inbound_sms/test_rest.py @@ -96,7 +96,7 @@ def test_post_to_get_inbound_sms_allows_badly_formatted_number(admin_request, sa @freeze_time('Monday 10th April 2017 12:00') -def test_post_to_get_most_recent_inbound_sms_for_service_limits_to_a_week(admin_request, sample_service): +def test_post_to_get_most_recent_inbound_sms_for_service_limits_to_retention_period(admin_request, sample_service): create_inbound_sms(sample_service, created_at=datetime(2017, 4, 3, 3, 59)) returned_inbound = create_inbound_sms(sample_service, created_at=datetime(2017, 4, 3, 4, 30))