From e0aec7f0a4cd503de6d2529e4c0a0540d23952a0 Mon Sep 17 00:00:00 2001 From: Adrien Dieudonne Date: Wed, 22 Aug 2018 09:16:20 +0200 Subject: [PATCH] [REF] test_mail: update counters due to enterprise ocn_client add This commit is related to enterprise commit that replaced mail_push. It is about: [MOV] ocn_client: Odoo Cloud Notification for mobile push notifications odoo/enterprise@7587be4663c39f6388d752c0eb5f81f53a1ba9f8 Indeed counters are impacted by code located in enterprise because those are "maximum queries" counters. As ocn_client is an auto-install module enterprise runbot would be broken if the counters weren't updated. --- addons/test_mail/tests/test_performance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index c48fd405db7..4320f89eaab 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -259,7 +259,7 @@ class TestAdvMailPerformance(TransactionCase): def test_message_post_one_email_notification(self): record = self.env['mail.test.simple'].create({'name': 'Test'}) - with self.assertQueryCount(admin=47, emp=67): # com runbot: 45 - 65 // test_mail only: 47 - 67 + with self.assertQueryCount(admin=48, emp=68): # com runbot: 45 - 65 // test_mail only: 48 - 68 record.message_post( body='

Test Post Performances with an email ping

', partner_ids=self.customer.ids, @@ -395,7 +395,7 @@ class TestHeavyMailPerformance(TransactionCase): self.umbrella.message_subscribe(self.user_portal.partner_id.ids) record = self.umbrella.sudo(self.env.user) - with self.assertQueryCount(admin=79, emp=102): # com runbot 90 - 113 // test_mail only: 97 - 120 + with self.assertQueryCount(admin=80, emp=103): # com runbot 90 - 113 // test_mail only: 97 - 120 record.message_post( body='

Test Post Performances

', message_type='comment', @@ -412,7 +412,7 @@ class TestHeavyMailPerformance(TransactionCase): record = self.umbrella.sudo(self.env.user) template_id = self.env.ref('test_mail.mail_test_tpl').id - with self.assertQueryCount(admin=98, emp=133): # com runbot 109 - 144 // test_mail only: 116 - 151 + with self.assertQueryCount(admin=99, emp=134): # com runbot 109 - 144 // test_mail only: 116 - 151 record.message_post_with_template(template_id, message_type='comment', composition_mode='comment') self.assertEqual(record.message_ids[0].body, '

Adding stuff on %s

' % record.name)