[DOC] test_mail: update some left query counters after 0f57bdba72
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user