Skip to content

Commit

Permalink
[FIX] contract unittest test_contract.py adding tagged('post_install'…
Browse files Browse the repository at this point in the history
…, '-at_install')
  • Loading branch information
mt-software-de committed Sep 13, 2022
1 parent bd786d8 commit 89e0807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contract/tests/test_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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):
Expand Down Expand Up @@ -191,6 +191,7 @@ def _create_uom(cls):
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:
Expand Down
3 changes: 2 additions & 1 deletion contract/tests/test_contract_manually_create_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

from .test_contract import TestContractBase


from odoo.tests import tagged
@tagged('post_install', '-at_install')
class TestContractManuallyCreateInvoice(TestContractBase):
@classmethod
def setUpClass(cls):
Expand Down

0 comments on commit 89e0807

Please sign in to comment.