Skip to content

Commit

Permalink
[IMP] contract_mandate: Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrià Pallejà committed Jul 8, 2024
1 parent 704a58b commit 9bd7a32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contract_mandate/tests/test_contract_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def test_onchange_payment_mode_id(self):
self.contract_with_mandate.mandate_required = False
self.contract_with_mandate._onchange_payment_mode_id()
self.assertFalse(self.contract_with_mandate.mandate_id)
self.contract_with_mandate.mandate_required = True
self.contract_with_mandate._onchange_payment_mode_id()
self.assertFalse(self.contract_with_mandate.mandate_id)

def test_contract_mandate_default(self):
self.payment_mode.payment_method_id.mandate_required = False
Expand Down

0 comments on commit 9bd7a32

Please sign in to comment.