From 64c0ae64925d12e36633e67e9aaf9e0d2f6b70ed Mon Sep 17 00:00:00 2001 From: Ken Tsang Date: Thu, 16 Nov 2017 16:02:31 +0000 Subject: [PATCH] Update test to show gets all notifications except job notis --- tests/app/v2/notifications/test_get_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/app/v2/notifications/test_get_notifications.py b/tests/app/v2/notifications/test_get_notifications.py index 5519c3d1a..de80073bd 100644 --- a/tests/app/v2/notifications/test_get_notifications.py +++ b/tests/app/v2/notifications/test_get_notifications.py @@ -266,7 +266,8 @@ def test_get_notification_doesnt_have_delivery_estimate_for_non_letters( assert 'estimated_delivery' not in json.loads(response.get_data(as_text=True)) -def test_get_all_notifications_returns_200(client, sample_template): +def test_get_all_notifications_except_job_notifications_returns_200(client, sample_template, sample_job): + create_notification(template=sample_template, job=sample_job) # should not return this job notification notifications = [create_notification(template=sample_template) for _ in range(2)] notification = notifications[-1]