mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_mandate: Increase test coverage
This commit is contained in:
@@ -60,6 +60,9 @@ class TestContractMandate(TestContractBase):
|
|||||||
self.contract_with_mandate.mandate_required = False
|
self.contract_with_mandate.mandate_required = False
|
||||||
self.contract_with_mandate._onchange_payment_mode_id()
|
self.contract_with_mandate._onchange_payment_mode_id()
|
||||||
self.assertFalse(self.contract_with_mandate.mandate_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):
|
def test_contract_mandate_default(self):
|
||||||
self.payment_mode.payment_method_id.mandate_required = False
|
self.payment_mode.payment_method_id.mandate_required = False
|
||||||
|
|||||||
Reference in New Issue
Block a user