[Erp5-report] r32253 yusuke - /erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 4 10:55:54 CET 2010
Author: yusuke
Date: Thu Feb 4 10:55:53 2010
New Revision: 32253
URL: http://svn.erp5.org?rev=32253&view=rev
Log:
never use doActionFor, use workflow method directly instead.
Modified:
erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py
Modified: erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py?rev=32253&r1=32252&r2=32253&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py [utf8] Thu Feb 4 10:55:53 2010
@@ -1144,8 +1144,11 @@
def test_autoplanned(self):
sale_invoice = self.portal.getDefaultModule('Sale Invoice').newContent(portal_type='Sale Invoice')
self.assertEquals(sale_invoice.getSimulationState(), 'draft')
- self.portal.portal_workflow.doActionFor(sale_invoice, 'auto_plan')
+ self.tic()
+
+ sale_invoice.autoPlan()
self.assertEquals(sale_invoice.getSimulationState(), 'auto_planned')
+ self.tic()
# other as anonymous
self.failIfUserCanAccessDocument(self.other.getId(), sale_invoice)
More information about the Erp5-report
mailing list