mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[14.0][IMP] contract: Simplify test flow
This commit is contained in:
@@ -169,7 +169,7 @@ class TestContractBase:
|
||||
)
|
||||
|
||||
|
||||
class TestContract(TestContractBase):
|
||||
class TestContract(TestContractBase, common.SavepointCase):
|
||||
def _add_template_line(self, overrides=None):
|
||||
if overrides is None:
|
||||
overrides = {}
|
||||
@@ -2412,7 +2412,3 @@ class TestContract(TestContractBase):
|
||||
action = self.contract.action_preview()
|
||||
self.assertIn("/my/contracts/", action["url"])
|
||||
self.assertIn("access_token=", action["url"])
|
||||
|
||||
|
||||
class TestContractCase(TestContract, common.SavepointCase):
|
||||
""" TESTS """
|
||||
|
||||
@@ -5,7 +5,7 @@ from odoo.addons.account.tests.common import AccountTestInvoicingCommon
|
||||
from .test_contract import TestContractBase
|
||||
|
||||
|
||||
class ContractMulticompanyCase(TestContractBase):
|
||||
class ContractMulticompanyCase(TestContractBase, AccountTestInvoicingCommon):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
@@ -107,7 +107,3 @@ class ContractMulticompanyCase(TestContractBase):
|
||||
len(contracts_company_2.mapped("contract_line_ids")),
|
||||
len(invoice_lines_company_2),
|
||||
)
|
||||
|
||||
|
||||
class TestContractMultiCompany(ContractMulticompanyCase, AccountTestInvoicingCommon):
|
||||
""" TESTS """
|
||||
|
||||
Reference in New Issue
Block a user