From 3d0283f6da93f282e410abda352f9c987966d231 Mon Sep 17 00:00:00 2001 From: David Vidal Date: Fri, 14 Jul 2017 18:47:30 +0200 Subject: [PATCH] [IMP] Shut mock exceptions up --- mail_tracking/tests/test_mail_tracking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail_tracking/tests/test_mail_tracking.py b/mail_tracking/tests/test_mail_tracking.py index 7a6ea83b..31f9b57c 100644 --- a/mail_tracking/tests/test_mail_tracking.py +++ b/mail_tracking/tests/test_mail_tracking.py @@ -3,6 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import mock +from odoo.tools import mute_logger import base64 import time from odoo import http @@ -222,6 +223,7 @@ class TestMailTracking(TransactionCase): ) self.assertEqual(len(opens), 3) + @mute_logger('odoo.addons.mail.models.mail_mail') def test_smtp_error(self): with mock.patch(mock_send_email) as mock_func: mock_func.side_effect = Warning('Test error')