Commit 6f9db67c authored by Vincent Pelletier's avatar Vincent Pelletier

User can edit stop date on document: update unit test to do so.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19271 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11c4eb13
...@@ -790,8 +790,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -790,8 +790,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
Also set doesment's stop date to self.future_date. Also set doesment's stop date to self.future_date.
""" """
document.setStopDate(self.future_date) document.setStopDate(self.future_date)
for line in document.objectValues(portal_type=['Exchanged Mutilated Banknote Line', 'Outgoing Mutilated Banknote Line']):
line.setStartDate(self.future_date)
def stepMoveToFuture(self, sequence=None, sequence_list=None, **kwd): def stepMoveToFuture(self, sequence=None, sequence_list=None, **kwd):
self.moveToFuture(self.mutilated_banknote) self.moveToFuture(self.mutilated_banknote)
...@@ -857,15 +855,15 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -857,15 +855,15 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
+ 'CheckHQInitialInventory ' \ + 'CheckHQInitialInventory ' \
+ 'CreateHQMutilatedBanknote SetHQMaculatedState Tic ' \ + 'CreateHQMutilatedBanknote SetHQMaculatedState Tic ' \
+ 'CreateHQIncomingLine Tic StopHQDocument Tic ' \ + 'CreateHQIncomingLine Tic StopHQDocument Tic ' \
+ 'MoveHQToFuture Tic ' \
+ 'CheckHQInventoryWithIncommingMaculatedBanknotes ' \ + 'CheckHQInventoryWithIncommingMaculatedBanknotes ' \
+ 'CheckHQMaculatedBanknoteInventory ' \ + 'CheckHQMaculatedBanknoteInventory ' \
+ 'TryDepositHQWithNoLineDefined CreateHQExchangedLine Tic TryDepositHQWithNoAmountDefined DepositHQDocument Tic ' \ + 'TryDepositHQWithNoLineDefined CreateHQExchangedLine Tic TryDepositHQWithNoAmountDefined DepositHQDocument Tic ' \
+ 'MoveHQToFuture Tic ' \
+ 'HQLogout ' \ + 'HQLogout ' \
+ 'CheckHQFinalInventoryWithPayBack '\ + 'CheckHQFinalInventoryWithPayBack '\
+ 'MoveToFuture Tic ' \
+ 'CreateExchangedLine Tic FinishDocument Tic ' \ + 'CreateExchangedLine Tic FinishDocument Tic ' \
+ 'CreateOutgoingLine Tic DeliverDocument Tic ' \ + 'CreateOutgoingLine Tic DeliverDocument Tic ' \
+ 'MoveToFuture Tic ' \
+ 'CheckFinalInventoryWithPayBackAfterHQRequest ClearMutilatedBanknoteModule ClearHQMutilatedBanknoteModule' + 'CheckFinalInventoryWithPayBackAfterHQRequest ClearMutilatedBanknoteModule ClearHQMutilatedBanknoteModule'
# sequence 5 : HQ, no payback, mutilated banknotes # sequence 5 : HQ, no payback, mutilated banknotes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment