From 71274eca71d24d3b024209f869aa3fb5407b012a Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 18 Apr 2018 17:31:12 +0200 Subject: [PATCH] [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. --- mail_tracking_mass_mailing/__manifest__.py | 4 ++-- mail_tracking_mass_mailing/tests/test_mass_mailing.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mail_tracking_mass_mailing/__manifest__.py b/mail_tracking_mass_mailing/__manifest__.py index 8a73a33b..d50c91dc 100644 --- a/mail_tracking_mass_mailing/__manifest__.py +++ b/mail_tracking_mass_mailing/__manifest__.py @@ -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", diff --git a/mail_tracking_mass_mailing/tests/test_mass_mailing.py b/mail_tracking_mass_mailing/tests/test_mass_mailing.py index aff12ff1..15a633ca 100644 --- a/mail_tracking_mass_mailing/tests/test_mass_mailing.py +++ b/mail_tracking_mass_mailing/tests/test_mass_mailing.py @@ -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)