Commit a752bc29 authored by Vincent Pelletier's avatar Vincent Pelletier

Pass the stop date so it gets found by the transition script.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15015 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4bd1c14c
......@@ -36,6 +36,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Testing.ZopeTestCase.PortalTestCase import PortalTestCase
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from DateTime import DateTime
# Needed in order to have a log file inside the current folder
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
......@@ -697,7 +698,7 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
# fix amount (10000 * 5.0 + 200 * 12.0)
self.monetary_destruction.setSourceTotalAssetPrice('170000.0')
# do the Workflow action
self.workflow_tool.doActionFor(self.monetary_destruction, 'confirm_action', wf_id='monetary_destruction_workflow')
self.workflow_tool.doActionFor(self.monetary_destruction, 'confirm_action', wf_id='monetary_destruction_workflow', stop_date=DateTime())
# execute tic
self.stepTic()
# get state
......
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