[Erp5-report] r15015 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 27 15:39:13 CEST 2007


Author: vincent
Date: Wed Jun 27 15:39:13 2007
New Revision: 15015

URL: http://svn.erp5.org?rev=15015&view=rev
Log:
Pass the stop date so it gets found by the transition script.

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py?rev=15015&r1=15014&r2=15015&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py Wed Jun 27 15:39:13 2007
@@ -36,6 +36,7 @@
 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 @@
     # 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




More information about the Erp5-report mailing list