From acfb1305f4bab4474e68d844692fd94ace0a4753 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 26 Mar 2018 10:51:38 +0100 Subject: [PATCH] Fix test --- tests/app/celery/test_scheduled_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/celery/test_scheduled_tasks.py b/tests/app/celery/test_scheduled_tasks.py index 2f03fe8c4..ad431b3cd 100644 --- a/tests/app/celery/test_scheduled_tasks.py +++ b/tests/app/celery/test_scheduled_tasks.py @@ -1200,7 +1200,7 @@ def test_replay_created_notifications(notify_db_session, sample_service, mocker) sms_template = create_template(service=sample_service, template_type='sms') email_template = create_template(service=sample_service, template_type='email') - older_than = current_app.config["RESEND_CREATED_NOTIFICATIONS_OLDER_THAN"] + older_than = (60 * 60 * 4) + (60 * 15) # 4 hours 15 minutes # notifications expected to be resent old_sms = create_notification(template=sms_template, created_at=datetime.utcnow() - timedelta(seconds=older_than), status='created')