Browse Source

[FIX] mail_tracking_mass_mailing: Integration tests (#258)

Testing this addon failed if i.e. `mass_mailing_list_dynamic` was installed before.

Moving tests to post-install mode fixes integration tests.
pull/351/head
Jairo Llopis 7 years ago
parent
commit
281adea4df
  1. 4
      mail_tracking_mass_mailing/__manifest__.py
  2. 4
      mail_tracking_mass_mailing/tests/test_mass_mailing.py

4
mail_tracking_mass_mailing/__manifest__.py

@ -7,9 +7,9 @@
{ {
"name": "Mail tracking for mass mailing", "name": "Mail tracking for mass mailing",
"summary": "Improve mass mailing email tracking", "summary": "Improve mass mailing email tracking",
"version": "10.0.1.0.0",
"version": "10.0.1.0.1",
"category": "Social Network", "category": "Social Network",
"website": "http://www.tecnativa.com",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, " "author": "Tecnativa, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",

4
mail_tracking_mass_mailing/tests/test_mass_mailing.py

@ -6,12 +6,14 @@
import mock import mock
from odoo.tools import mute_logger 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.' mock_send_email = ('odoo.addons.base.ir.ir_mail_server.'
'IrMailServer.send_email') 'IrMailServer.send_email')
@at_install(False)
@post_install(True)
class TestMassMailing(TransactionCase): class TestMassMailing(TransactionCase):
def setUp(self, *args, **kwargs): def setUp(self, *args, **kwargs):
super(TestMassMailing, self).setUp(*args, **kwargs) super(TestMassMailing, self).setUp(*args, **kwargs)

Loading…
Cancel
Save