From e98a740dbf719b376e528441f789086f939d3623 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 31 Aug 2016 13:46:00 +0100 Subject: [PATCH] Fix test to expect correct db queue Sending emails was moved to a different queue in: https://github.com/alphagov/notifications-api/pull/647 At the time that https://github.com/alphagov/notifications-api/pull/645 was written, the previous queues were still being used. So when #645 got merged it was testing for the old queues, which broke the tests. --- tests/app/notifications/rest/test_send_notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/notifications/rest/test_send_notification.py b/tests/app/notifications/rest/test_send_notification.py index 450020e9c..b0492e8bb 100644 --- a/tests/app/notifications/rest/test_send_notification.py +++ b/tests/app/notifications/rest/test_send_notification.py @@ -799,7 +799,7 @@ def test_should_send_email_to_anyone_with_test_key( 'api_key_id': str(api_key.id), 'key_type': api_key.key_type }, - queue='email' + queue='db-email' ) assert response.status_code == 201