From 2b54c2308b2bfa7e237d765fb4da5582febc19de Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 28 Nov 2017 10:42:54 +0000 Subject: [PATCH] fix test that did not depend on the notify-db-session fixture, so left a messy db --- tests/app/v2/notifications/test_get_notifications.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/app/v2/notifications/test_get_notifications.py b/tests/app/v2/notifications/test_get_notifications.py index de80073bd..6bef10a57 100644 --- a/tests/app/v2/notifications/test_get_notifications.py +++ b/tests/app/v2/notifications/test_get_notifications.py @@ -339,10 +339,9 @@ def test_get_all_notifications_no_notifications_if_no_notifications(client, samp assert len(json_response['notifications']) == 0 -def test_get_all_notifications_filter_by_template_type(client): - service = create_service() - email_template = create_template(service=service, template_type="email") - sms_template = create_template(service=service, template_type="sms") +def test_get_all_notifications_filter_by_template_type(client, sample_service): + email_template = create_template(service=sample_service, template_type="email") + sms_template = create_template(service=sample_service, template_type="sms") notification = create_notification(template=email_template, to_field="don.draper@scdp.biz") create_notification(template=sms_template)