diff options
| author | Raphael Collet <rco@odoo.com> | 2019-04-24 11:55:32 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-05-06 09:44:10 +0000 |
| commit | a38dc1ccb94c45cf632d9cf547c6570f63cb45d1 (patch) | |
| tree | 15573390d236879ab409615cf684987ac3d7cdaa /addons/test_mail/tests/test_performance.py | |
| parent | d0dbcacfff1547f681f9513cd18c74dd94dee1a6 (diff) | |
[FIX] test_mail: adapt query counts
closes odoo/odoo#32905
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/test_mail/tests/test_performance.py')
| -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 9030c69c40f..5faafe266b8 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -210,7 +210,7 @@ class TestAdvMailPerformance(TransactionCase): def test_message_assignation_email(self): self.user_test.write({'notification_type': 'email'}) record = self.env['mail.test.track'].create({'name': 'Test'}) - with self.assertQueryCount(__system__=59, emp=74): # com runbot: 59 - 74 // test_mail only: 59 - 71 + with self.assertQueryCount(__system__=61, emp=76): # com runbot: 61 - 76 // test_mail only: 61 - 71 record.write({ 'user_id': self.user_test.id, }) @@ -505,7 +505,7 @@ class TestHeavyMailPerformance(TransactionCase): customer_id = self.customer.id user_id = self.user_portal.id - with self.assertQueryCount(__system__=154, emp=171): # com runbot: 154 - 171 // test_mail only: 154 - 168 + with self.assertQueryCount(__system__=155, emp=172): # com runbot: 155 - 172 // test_mail only: 154 - 168 rec = self.env['mail.test.full'].create({ 'name': 'Test', 'umbrella_id': umbrella_id, @@ -568,7 +568,7 @@ class TestHeavyMailPerformance(TransactionCase): }) self.assertEqual(rec.message_partner_ids, self.user_portal.partner_id | self.env.user.partner_id) - with self.assertQueryCount(__system__=104, emp=126): # test_mail only: 104 - 123 + with self.assertQueryCount(__system__=105, emp=127): # test_mail only: 104 - 123 rec.write({ 'name': 'Test2', 'umbrella_id': umbrella_id, @@ -600,7 +600,7 @@ class TestHeavyMailPerformance(TransactionCase): }) self.assertEqual(rec.message_partner_ids, self.partners | self.env.user.partner_id | self.user_portal.partner_id) - with self.assertQueryCount(__system__=51, emp=66): # test_mail only: 51 - 66 + with self.assertQueryCount(__system__=52, emp=66): # test_mail only: 51 - 66 rec.write({ 'name': 'Test2', 'customer_id': customer_id, |
