summaryrefslogtreecommitdiff
path: root/addons/test_mass_mailing
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-01-13 13:16:21 +0000
committerVictor Feyens <vfe@odoo.com>2020-01-14 11:59:53 +0000
commitcaf11fade0e2c9979375cb5d20bae2f80af25f46 (patch)
tree86add40ce3ade8e49cca23de313b30be5221e6ef /addons/test_mass_mailing
parent2d0193053774d63d5505143720f25aff9561dde4 (diff)
[IMP] *: update query counts
Query counts weren't adapted to recent performance changes. This commit updates the different query counts to make sure any commit changing the query counts knows it and does it on purpose. Some query counts may vary between community and enterprise and therefore have a higher value than needed in community version. closes odoo/odoo#43202 Related: odoo/enterprise#7682 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/test_mass_mailing')
-rw-r--r--addons/test_mass_mailing/tests/test_performance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mass_mailing/tests/test_performance.py b/addons/test_mass_mailing/tests/test_performance.py
index d642d7d9e40..cf9b9ef0d5c 100644
--- a/addons/test_mass_mailing/tests/test_performance.py
+++ b/addons/test_mass_mailing/tests/test_performance.py
@@ -50,7 +50,7 @@ class TestMassMailPerformance(TestMassMailPerformanceBase):
'mailing_domain': [('id', 'in', self.mm_recs.ids)],
})
- with self.assertQueryCount(__system__=2478, marketing=3128):
+ with self.assertQueryCount(__system__=2261, marketing=2261):
mailing.action_send_mail()
self.assertEqual(mailing.sent, 50)
@@ -89,7 +89,7 @@ class TestMassMailBlPerformance(TestMassMailPerformanceBase):
'mailing_domain': [('id', 'in', self.mm_recs.ids)],
})
- with self.assertQueryCount(__system__=2865, marketing=3611):
+ with self.assertQueryCount(__system__=2636, marketing=2636):
mailing.action_send_mail()
self.assertEqual(mailing.sent, 50)