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_mail_mail.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_mail_mail.py')
| -rw-r--r-- | addons/test_mail/tests/test_mail_mail.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/test_mail/tests/test_mail_mail.py b/addons/test_mail/tests/test_mail_mail.py index 7e6b0f98ba2..a65a3c1b3fa 100644 --- a/addons/test_mail/tests/test_mail_mail.py +++ b/addons/test_mail/tests/test_mail_mail.py @@ -6,10 +6,11 @@ import psycopg2 from odoo import api from odoo.addons.base.models.ir_mail_server import MailDeliveryException from odoo.addons.test_mail.tests.common import TestMailCommon -from odoo.tests import common +from odoo.tests import common, tagged from odoo.tools import mute_logger +@tagged('post_install', '-at_install') class TestMailMail(TestMailCommon): @mute_logger('odoo.addons.mail.models.mail_mail') @@ -36,6 +37,7 @@ class TestMailMail(TestMailCommon): self.assertRaises(MailDeliveryException, lambda: mail.send(raise_exception=True)) +@tagged('post_install', '-at_install') class TestMailMailRace(common.TransactionCase): @mute_logger('odoo.addons.mail.models.mail_mail') |
