From 14bf20ec8f3efd4a80e411b348442d078b454638 Mon Sep 17 00:00:00 2001 From: Michael Tietz Date: Tue, 13 Sep 2022 13:06:54 +0200 Subject: [PATCH] [FIX] contract unittest test_contract.py adding tagged('post_install', '-at_install') --- contract/tests/test_contract.py | 3 ++- contract/tests/test_contract_manually_create_invoice.py | 2 ++ contract/tests/test_multicompany.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contract/tests/test_contract.py b/contract/tests/test_contract.py index 762ecb495..aa56a2d67 100644 --- a/contract/tests/test_contract.py +++ b/contract/tests/test_contract.py @@ -10,7 +10,7 @@ from dateutil.relativedelta import relativedelta from odoo import fields from odoo.exceptions import UserError, ValidationError -from odoo.tests import Form, common +from odoo.tests import Form, common, tagged def to_date(date): @@ -191,6 +191,7 @@ class TestContractBase(common.SavepointCase): return cls.uom_obj.create(vals) +@tagged("post_install", "-at_install") class TestContract(TestContractBase): def _add_template_line(self, overrides=None): if overrides is None: diff --git a/contract/tests/test_contract_manually_create_invoice.py b/contract/tests/test_contract_manually_create_invoice.py index 4eedf8c6c..fb13bdd4a 100644 --- a/contract/tests/test_contract_manually_create_invoice.py +++ b/contract/tests/test_contract_manually_create_invoice.py @@ -5,10 +5,12 @@ from odoo.exceptions import UserError +from odoo.tests import tagged from .test_contract import TestContractBase +@tagged("post_install", "-at_install") class TestContractManuallyCreateInvoice(TestContractBase): @classmethod def setUpClass(cls): diff --git a/contract/tests/test_multicompany.py b/contract/tests/test_multicompany.py index 6d104b205..7296c9bbf 100644 --- a/contract/tests/test_multicompany.py +++ b/contract/tests/test_multicompany.py @@ -1,9 +1,12 @@ # Copyright 2021 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo.tests import tagged + from .test_contract import TestContractBase +@tagged("post_install", "-at_install") class ContractMulticompanyCase(TestContractBase): @classmethod def setUpClass(cls):