diff --git a/tests/app/dao/test_notification_dao.py b/tests/app/dao/test_notification_dao.py index 14a00695d..21dd3c337 100644 --- a/tests/app/dao/test_notification_dao.py +++ b/tests/app/dao/test_notification_dao.py @@ -474,9 +474,10 @@ def test_save_notification_and_increment_job(sample_template, sample_job, mmg_pr def test_should_not_increment_job_if_notification_fails_to_persist(sample_template, sample_job, mmg_provider_name): random_id = str(uuid.uuid4()) assert Notification.query.count() == 0 - data = data = { + data = { 'id': random_id, 'to': '+44709123456', + 'job_id': sample_job.id, 'service': sample_template.service, 'service_id': sample_template.service.id, 'template': sample_template, @@ -913,4 +914,4 @@ def _notification_json(sample_template, job_id=None): } if job_id: data.update({'job_id': job_id}) - return data \ No newline at end of file + return data