diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2018-08-22 09:16:20 +0200 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2018-08-22 11:16:14 +0200 |
| commit | e0aec7f0a4cd503de6d2529e4c0a0540d23952a0 (patch) | |
| tree | 23d06d0f8400d1655dbed29b502d310fbcb4e093 /addons/test_mail/tests/test_performance.py | |
| parent | 7aca511b4c3117b5035009706f6c2cf472f27fa2 (diff) | |
[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.
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 6 |
1 files 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='<p>Test Post Performances with an email ping</p>', 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='<p>Test Post Performances</p>', 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, '<p>Adding stuff on %s</p>' % record.name) |
