From 34de722e73e507604d30ce67f7b359c4a200c4a8 Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Fri, 28 Apr 2017 13:32:23 +0100 Subject: [PATCH] Add test to check for sent notification --- tests/app/dao/test_jobs_dao.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/app/dao/test_jobs_dao.py b/tests/app/dao/test_jobs_dao.py index b3598fd7f..f01b631ba 100644 --- a/tests/app/dao/test_jobs_dao.py +++ b/tests/app/dao/test_jobs_dao.py @@ -43,6 +43,7 @@ def test_should_get_all_statuses_for_notifications_associated_with_job( notification(status='technical-failure') notification(status='temporary-failure') notification(status='permanent-failure') + notification(status='sent') results = dao_get_notification_outcomes_for_job(sample_service.id, sample_job.id) assert [(row.count, row.status) for row in results] == [ @@ -53,7 +54,8 @@ def test_should_get_all_statuses_for_notifications_associated_with_job( (1, 'failed'), (1, 'technical-failure'), (1, 'temporary-failure'), - (1, 'permanent-failure') + (1, 'permanent-failure'), + (1, 'sent') ]