Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
logging: Remove unnecessary mock.patch() for logging.
m-e-l-u-h-a-nbe7a70e74252
diff --git a/zerver/tests/test_email_log.py b/zerver/tests/test_email_log.pyindex b21f9fcb663..ee90bbc9d12 100644--- a/zerver/tests/test_email_log.py+++ b/zerver/tests/test_email_log.py@@ -32,8 +32,7 @@ class EmailLogTest(ZulipTestCase):self.assertEqual(get_forward_address(), forward_address)- with self.settings(EMAIL_BACKEND='zproject.email_backends.EmailLogBackEnd'), \- mock.patch('logging.info', return_value=None):+ with self.settings(EMAIL_BACKEND='zproject.email_backends.EmailLogBackEnd'):with mock.patch('zproject.email_backends.EmailLogBackEnd.send_email_smtp'):result = self.client_get('/emails/generate/')self.assertEqual(result.status_code, 302)diff --git a/zerver/tests/test_user_groups.py b/zerver/tests/test_user_groups.pyindex 24ed19a7c73..409fc289525 100644--- a/zerver/tests/test_user_groups.py+++ b/zerver/tests/test_user_groups.py@@ -422,8 +422,7 @@ class UserGroupAPITestCase(ZulipTestCase):content=content_with_group_mention,)- with mock.patch('logging.info'):- result = self.api_post(sender, "/json/messages", payload)+ result = self.api_post(sender, "/json/messages", payload)self.assert_json_success(result)