Skip to content

Commit

Permalink
[FIX] mail_tracking_mass_mailing: Integration tests (OCA#258)
Browse files Browse the repository at this point in the history
Testing this addon failed if i.e. `mass_mailing_list_dynamic` was installed before.

Moving tests to post-install mode fixes integration tests.
  • Loading branch information
yajo authored and CarlosRoca13 committed Jul 22, 2021
1 parent c832802 commit 0d0e623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mail_tracking_mass_mailing/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
{
"name": "Mail tracking for mass mailing",
"summary": "Improve mass mailing email tracking",
"version": "10.0.1.0.0",
"version": "10.0.1.0.1",
"category": "Social Network",
"website": "http://www.tecnativa.com",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
4 changes: 3 additions & 1 deletion mail_tracking_mass_mailing/tests/test_mass_mailing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@

import mock
from odoo.tools import mute_logger
from odoo.tests.common import TransactionCase
from odoo.tests.common import at_install, post_install, TransactionCase

mock_send_email = ('odoo.addons.base.ir.ir_mail_server.'
'IrMailServer.send_email')


@at_install(False)
@post_install(True)
class TestMassMailing(TransactionCase):
def setUp(self, *args, **kwargs):
super(TestMassMailing, self).setUp(*args, **kwargs)
Expand Down

0 comments on commit 0d0e623

Please sign in to comment.