From 60dc58cdf4323c2f4d6934d7be7bdbdacdabbe9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 6 Mar 2020 10:25:44 +0000 Subject: [PATCH] [IMP] test_mail: clean test log with appropriate mute logger Similar to what is done for the other tests, mute unnecessary log such as `odoo.tests: skip sending email in test mode`. Part of task-2180311 PR: #43841 --- addons/test_mail/tests/test_performance.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 1b1a2ca3915..fcba93efe62 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -253,7 +253,7 @@ class TestMailAPIPerformance(BaseMailPerformance): @users('__system__', 'emp') @warmup - @mute_logger('odoo.addons.mail.models.mail_mail') + @mute_logger('odoo.tests', 'odoo.addons.mail.models.mail_mail') def test_mail_composer(self): test_record = self.env['mail.test.full'].browse(self.test_record_full.id) customer_id = self.customer.id @@ -272,7 +272,7 @@ class TestMailAPIPerformance(BaseMailPerformance): @users('__system__', 'emp') @warmup - @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') + @mute_logger('odoo.tests', 'odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') def test_mail_composer_w_template(self): test_record = self.env['mail.test.full'].browse(self.test_record_full.id) test_template = self.env['mail.template'].browse(self.test_template_full.id) @@ -292,7 +292,7 @@ class TestMailAPIPerformance(BaseMailPerformance): # remove created partner to ensure tests are the same each run self.env['res.partner'].sudo().search([('email', '=', 'nopartner.test@example.com')]).unlink() - @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') + @mute_logger('odoo.tests', 'odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') @users('__system__', 'emp') @warmup def test_message_assignation_email(self): @@ -345,7 +345,7 @@ class TestMailAPIPerformance(BaseMailPerformance): message_type='comment', subtype_xmlid='mail.mt_comment') - @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') + @mute_logger('odoo.tests', 'odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') @users('__system__', 'emp') @warmup def test_message_post_one_email_notification(self):