summaryrefslogtreecommitdiff
path: root/addons/test_mail/tests
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-04-11 12:46:24 +0200
committerThibault Delavallée <tde@odoo.com>2018-04-11 13:33:38 +0200
commit79daa2e262be0a50e02727f419f70bca4b356e48 (patch)
treeef878231067ac0295b0cb3b71df06110aa17a6ef /addons/test_mail/tests
parent3be7c239007ee3d3371d412c8795636ce2b058fe (diff)
[IMP] test_mail: follow activities in performance tests
Commit 07ae0ccc4e4b4f79cf299f2a54ad3ee5e3a250af set activities as not followed by default on records. However this has an impact on performance test that should not happen. Indeed performance tests should be based on technical decisions, not business decisions. We therefore set activities as followed by default in some advanced performance tests to always have results that can be compared.
Diffstat (limited to 'addons/test_mail/tests')
-rw-r--r--addons/test_mail/tests/test_performance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py
index bf8d5740e93..3ce8126440b 100644
--- a/addons/test_mail/tests/test_performance.py
+++ b/addons/test_mail/tests/test_performance.py
@@ -143,6 +143,9 @@ class TestAdvMailPerformance(TransactionCase):
'groups_id': [(6, 0, [self.env.ref('base.group_user').id])],
})
+ # automatically follow activities, for backward compatibility concerning query count
+ self.env.ref('mail.mt_activities').write({'default': True})
+
@users('admin', 'emp')
@warmup
def test_adv_activity(self):