diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-04-11 12:46:24 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-04-11 13:33:38 +0200 |
| commit | 79daa2e262be0a50e02727f419f70bca4b356e48 (patch) | |
| tree | ef878231067ac0295b0cb3b71df06110aa17a6ef /addons | |
| parent | 3be7c239007ee3d3371d412c8795636ce2b058fe (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')
| -rw-r--r-- | addons/test_mail/tests/test_performance.py | 3 |
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): |
