Skip to content

Commit

Permalink
[17.0][IMP] handle is_modify in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrel-exo committed Apr 15, 2024
1 parent 8da7a42 commit 80550b0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions account_invoice_refund_link/tests/test_invoice_refund_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


class TestInvoiceRefundLinkBase(TransactionCase):
is_modify = False

@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down Expand Up @@ -85,7 +87,7 @@ def setUpClass(cls):
"reason": cls.refund_reason,
"journal_id": cls.journal.id,
}
).reverse_moves()
).reverse_moves(is_modify=cls.is_modify)

def _test_refund_link(self):
self.assertTrue(self.invoice.refund_invoice_ids)
Expand Down Expand Up @@ -137,11 +139,15 @@ def test_refund_copy(self):
)


class TestInvoiceRefundCancelLink(TestInvoiceRefundLinkBase):
class TestInvoiceRefundNoModifyLink(TestInvoiceRefundLinkBase):
is_modify = False

def test_refund_link(self):
self._test_refund_link()


class TestInvoiceRefundModifyLink(TestInvoiceRefundLinkBase):
is_modify = True

def test_refund_link(self):
self._test_refund_link()

0 comments on commit 80550b0

Please sign in to comment.