From 00e7b337df62caa292444252aecbab1edb0e2662 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 30 Oct 2018 16:01:23 +0000 Subject: [PATCH] Update unit test to be more realistic with failure types --- tests/app/service/test_statistics.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/app/service/test_statistics.py b/tests/app/service/test_statistics.py index cde1a67a3..715553359 100644 --- a/tests/app/service/test_statistics.py +++ b/tests/app/service/test_statistics.py @@ -35,9 +35,10 @@ NewStatsRow = collections.namedtuple('row', ('notification_type', 'status', 'key StatsRow('email', 'technical-failure', 1), StatsRow('email', 'temporary-failure', 1), StatsRow('email', 'permanent-failure', 1), - StatsRow('email', 'validation-failed', 1), - StatsRow('email', 'virus-scan-failed', 1), - ], [6, 0, 6], [0, 0, 0], [0, 0, 0]), + StatsRow('letter', 'validation-failed', 1), + StatsRow('letter', 'virus-scan-failed', 1), + StatsRow('letter', 'permanent-failure', 1), + ], [4, 0, 4], [0, 0, 0], [3, 0, 3]), 'convert_sent_to_delivered': ([ StatsRow('sms', 'sending', 1), StatsRow('sms', 'delivered', 1),