From 065accc472b5ab833669f0923d3c7a1f56636d3c Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Fri, 31 Aug 2018 11:09:25 +0100 Subject: [PATCH] fixup! Make sure we actually call the logger --- opentech/public/mailchimp/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opentech/public/mailchimp/tests.py b/opentech/public/mailchimp/tests.py index 4e8387121..e5ca132f3 100644 --- a/opentech/public/mailchimp/tests.py +++ b/opentech/public/mailchimp/tests.py @@ -50,8 +50,8 @@ class TestNewsletterView(TestCase): MAILCHIMP_LIST_ID='12345' ) @responses.activate - @mock.patch('opentech.public.mailchimp.views.logging') - def test_error_with_mailchimp(self, logging): + @mock.patch('opentech.public.mailchimp.views.logger') + def test_error_with_mailchimp(self, logger): # Copied from the mailchimp playground response_data = { "title": "Invalid Resource", @@ -66,4 +66,4 @@ class TestNewsletterView(TestCase): messages = list(response.context['messages']) self.assertEqual(len(messages), 1) self.assertIn('problem', str(messages[0])) - logging.info.assert_called_once_with(response_data) + logger.error.assert_called_once_with(response_data) -- GitLab