diff options
| author | Thibault Delavallée <tde@odoo.com> | 2021-04-13 12:07:51 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2021-04-13 12:09:21 +0000 |
| commit | a2985f32afeeca992bfd46c792549239935f2128 (patch) | |
| tree | f17d75b99891e8ae28ec2c37832bd35feae5caec /addons/test_mail/tests/test_performance.py | |
| parent | a6bd962404dfd262c78c330f69388426b98f2d5a (diff) | |
[IMP] test_mail: update performance counters
Updated compared to enterprise runbot counters of 04/13/2021
Task ID-2506047
PR odoo/odoo#68870
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 78374b25e47..fa64f9d39f2 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -270,7 +270,7 @@ class TestMailAPIPerformance(BaseMailPerformance): 'partner_ids': [(4, customer_id)], }) - with self.assertQueryCount(__system__=29, emp=32): + with self.assertQueryCount(__system__=25, emp=32): composer.send_mail() @users('__system__', 'emp') @@ -290,7 +290,7 @@ class TestMailAPIPerformance(BaseMailPerformance): }).create({}) composer.onchange_template_id_wrapper() - with self.assertQueryCount(__system__=37, emp=40): + with self.assertQueryCount(__system__=33, emp=40): composer.send_mail() # remove created partner to ensure tests are the same each run @@ -331,7 +331,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_log_with_post(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=5, emp=6): + with self.assertQueryCount(__system__=3, emp=6): record.message_post( body='<p>Test message_post as log</p>', subtype_xmlid='mail.mt_note', @@ -342,7 +342,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_post_no_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=5, emp=6): + with self.assertQueryCount(__system__=3, emp=6): record.message_post( body='<p>Test Post Performances basic</p>', partner_ids=[], @@ -355,7 +355,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_post_one_email_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=30, emp=31): + with self.assertQueryCount(__system__=28, emp=31): record.message_post( body='<p>Test Post Performances with an email ping</p>', partner_ids=self.customer.ids, @@ -367,7 +367,7 @@ class TestMailAPIPerformance(BaseMailPerformance): def test_message_post_one_inbox_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=14, emp=17): + with self.assertQueryCount(__system__=12, emp=17): record.message_post( body='<p>Test Post Performances with an inbox ping</p>', partner_ids=self.user_test.partner_id.ids, @@ -847,14 +847,14 @@ class TestMailComplexPerformance(BaseMailPerformance): 'res_id': record.id } for record in records]) - with self.assertQueryCount(emp=5): + with self.assertQueryCount(emp=4): res = messages.message_format() self.assertEqual(len(res), 6) messages.flush() messages.invalidate_cache() - with self.assertQueryCount(emp=15): + with self.assertQueryCount(emp=14): res = messages.message_format() self.assertEqual(len(res), 6) |
