diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-01-22 13:32:53 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-01-22 13:36:22 +0000 |
| commit | 976e560a877bcaf9e769b6005d33bd49833eceb9 (patch) | |
| tree | 3d6fecacaf3c7292b0c624c1f1db9daea31625b7 /addons/test_mail/tests/test_message_composer.py | |
| parent | 370f53d8dcc88b4c6960fc321199df688d1d0810 (diff) | |
[IMP] test_mail(_full): run tests at post_install
- take advantage of runbot multi-build capabilities
- get similar result when running them locally during dev
- better detect when other modules add extra queries
Query counts are split in the base value (testing with just test_mail installed)
+ the extra modules overhead.
Part of task-2178641
closes odoo/odoo#43666
Pr: #43666
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/test_mail/tests/test_message_composer.py')
| -rw-r--r-- | addons/test_mail/tests/test_message_composer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/test_mail/tests/test_message_composer.py b/addons/test_mail/tests/test_message_composer.py index e94b5a533c3..1ff2ea4cab4 100644 --- a/addons/test_mail/tests/test_message_composer.py +++ b/addons/test_mail/tests/test_message_composer.py @@ -7,9 +7,11 @@ from unittest.mock import patch from odoo.addons.test_mail.tests.common import TestMailCommon, TestRecipients from odoo.addons.test_mail.models.test_mail_models import MailTestSimple +from odoo.tests import tagged from odoo.tools import mute_logger +@tagged('post_install', '-at_install') class TestComposer(TestMailCommon, TestRecipients): @classmethod @@ -153,6 +155,7 @@ class TestComposer(TestMailCommon, TestRecipients): self.assertEqual(self.test_record.message_ids[0].author_id, portal_user.partner_id) +@tagged('post_install', '-at_install') class TestComposerWTpl(TestMailCommon, TestRecipients): @classmethod |
