Commit 888ded9c authored by Jérome Perrin's avatar Jérome Perrin

the transaction tested in test_AccountingTransactionValidationSection was not

valid for destination section. Fix the test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23774 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92405d7e
......@@ -3102,11 +3102,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
'stop_action')
# mirror section can be set only on the line
for line in transaction.getMovementList() :
if line.getSourceValue().isMemberOf(
'account_type/asset/receivable') or \
line.getSourceValue().isMemberOf(
'account_type/liability/payable') :
line.setDestinationSection(old_destination_section)
line.setDestinationSection(old_destination_section)
try:
self.getWorkflowTool().doActionFor(transaction, 'stop_action')
self.assertEquals(transaction.getSimulationState(), 'stopped')
......
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