diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-03-15 10:43:40 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-03-15 10:43:40 +0100 |
| commit | f2f2dfaf3695cd6f1ca694c3e6b42a6ae011360d (patch) | |
| tree | 7edea6ebf315ad381337cda48681b978825d2b2c | |
| parent | 101e0a7ef792c5b1af95a08931647fb485af2ec6 (diff) | |
[DOC] test_mail: update some left query counters after 0f57bdba72b592ca097d4cd3da99a75883d8c623
test_mail only counters have not all been updated. Those may be different from runbot as
some tests depend on installed modules. Let us update it.
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py index 4b69f0da6d7..5186b9781fb 100644 --- a/addons/test_mail/tests/test_performance.py +++ b/addons/test_mail/tests/test_performance.py @@ -167,7 +167,7 @@ class TestAdvMailPerformance(TransactionCase): 'activity_type_id': self.env.ref('mail.mail_activity_data_todo').id, }) - with self.assertQueryCount(admin=60, emp=88): # test_mail only: 60 - 87 + with self.assertQueryCount(admin=60, emp=88): # test_mail only: 59 - 87 activity.action_feedback(feedback='Zizisse Done !') @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink') @@ -177,7 +177,7 @@ class TestAdvMailPerformance(TransactionCase): self.user_test.write({'notification_type': 'email'}) record = self.env['mail.test.track'].create({'name': 'Test'}) - with self.assertQueryCount(admin=92, emp=120): # test_mail only: 90 - 116 + with self.assertQueryCount(admin=92, emp=120): # test_mail only: 90 - 118 record.write({ 'user_id': self.user_test.id, }) @@ -455,7 +455,7 @@ class TestHeavyMailPerformance(TransactionCase): }) self.assertEqual(rec.message_partner_ids, self.partners | self.env.user.partner_id) - with self.assertQueryCount(admin=94, emp=123): # test_mail only: 92 - 120 + with self.assertQueryCount(admin=94, emp=123): # test_mail only: 92 - 121 rec.write({'user_id': self.user_portal.id}) self.assertEqual(rec.message_partner_ids, self.partners | self.env.user.partner_id | self.user_portal.partner_id) @@ -478,7 +478,7 @@ class TestHeavyMailPerformance(TransactionCase): customer_id = self.customer.id user_id = self.user_portal.id - with self.assertQueryCount(admin=326, emp=388): # test_mail only: 319 - 379 + with self.assertQueryCount(admin=326, emp=388): # test_mail only: 319 - 381 rec = self.env['mail.test.full'].create({ 'name': 'Test', 'umbrella_id': umbrella_id, @@ -545,7 +545,7 @@ class TestHeavyMailPerformance(TransactionCase): }) self.assertEqual(rec.message_partner_ids, self.user_portal.partner_id | self.env.user.partner_id) - with self.assertQueryCount(admin=233, emp=272): # test_mail only: 228 - 267 + with self.assertQueryCount(admin=233, emp=272): # test_mail only: 228 - 268 rec.write({ 'name': 'Test2', 'umbrella_id': umbrella_id, |
