diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-03-06 10:25:44 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-03-06 16:15:41 +0000 |
| commit | 60dc58cdf4323c2f4d6934d7be7bdbdacdabbe9c (patch) | |
| tree | 4310dbe8895a1f06c473b4f15e7effb0c85bd8c7 | |
| parent | 0712c5222c8e230e5b582fd70732c04446ce65ef (diff) | |
[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
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 8 |
1 files 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): |
