diff --git a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py index 203eea8d88786b5cb5bc7fba206b74c8d348f6e8..3241e0040c4335b668e88875614f65232557f7a8 100755 --- a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py +++ b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py @@ -442,7 +442,7 @@ class TestERP5BankingCheckPaymentMixin: FIXME: check if the transition fails when a category or property is invalid. """ self.assertEqual(self.check_payment.getSourceTotalAssetPrice(), - self.check_payment.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell')) + self.check_payment.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell'])) self.workflow_tool.doActionFor(self.check_payment, 'deliver_action', wf_id='check_payment_workflow') self.assertEqual(self.check_payment.getSimulationState(), 'delivered') diff --git a/product/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py b/product/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py index 21efada8c0a92e031da8cdcc9db2a8c9c56570e6..d0bf0361fdb95608f1b0f50a4b3c2855cc719117 100644 --- a/product/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py +++ b/product/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py @@ -232,12 +232,12 @@ class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin, ERP5TypeTestCase def stepDeliverInternalMoneyDeposit(self, sequence=None, sequence_list=None, **kwd): self.assertEqual(self.internal_money_deposit.getSourceTotalAssetPrice(), - self.internal_money_deposit.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell')) + self.internal_money_deposit.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell'])) self.workflow_tool.doActionFor(self.internal_money_deposit, 'deliver_action', wf_id='internal_money_deposit_workflow') self.assertEqual(self.internal_money_deposit.getSimulationState(), 'delivered') self.assertEqual(self.internal_money_deposit.getSourceTotalAssetPrice(), 20000.0) - self.assertEqual(20000.0, self.internal_money_deposit.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell')) + self.assertEqual(20000.0, self.internal_money_deposit.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell'])) def stepCheckFinalInventory(self, sequence=None, sequence_list=None, **kwd): diff --git a/product/ERP5Banking/tests/testERP5BankingMoneyDeposit.py b/product/ERP5Banking/tests/testERP5BankingMoneyDeposit.py index ba6f840146347966a52252a6d8067fae9089c850..af12c708bc6f47a80b1777061f5f139b6ccd3477 100644 --- a/product/ERP5Banking/tests/testERP5BankingMoneyDeposit.py +++ b/product/ERP5Banking/tests/testERP5BankingMoneyDeposit.py @@ -282,14 +282,13 @@ class TestERP5BankingMoneyDepositMixin: self.assertEqual(self.simulation_tool.getFutureInventory(payment=self.bank_account_1.getRelativeUrl()), 120000) def stepDeliverMoneyDeposit(self, sequence=None, sequence_list=None, **kwd): - self.assertEqual(self.money_deposit.getSourceTotalAssetPrice(), - self.money_deposit.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell')) + self.money_deposit.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell'])) self.workflow_tool.doActionFor(self.money_deposit, 'deliver_action', wf_id='money_deposit_workflow') self.assertEqual(self.money_deposit.getSimulationState(), 'delivered') self.assertEqual(self.money_deposit.getSourceTotalAssetPrice(), 20000.0) - self.assertEqual(20000.0, self.money_deposit.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell')) + self.assertEqual(20000.0, self.money_deposit.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell'])) def stepCheckFinalInventory(self, sequence=None, sequence_list=None, **kwd): """