[Erp5-report] r26537 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 21 10:28:48 CEST 2009
Author: luke
Date: Tue Apr 21 10:28:46 2009
New Revision: 26537
URL: http://svn.erp5.org?rev=26537&view=rev
Log:
- implement tic step
Modified:
erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=26537&r1=26536&r2=26537&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Tue Apr 21 10:28:46 2009
@@ -840,6 +840,17 @@
import pdb; pdb.set_trace()
pass
+ def stepTic(self, **kw):
+ """
+ The is used to simulate the zope_tic_loop script
+ Each time this method is called, it simulates a call to tic
+ which invoke activities in the Activity Tool
+ """
+ if kw.get('sequence', None) is None:
+ # in case of using not in sequence commit transaction
+ get_transaction().commit()
+ self.tic()
+
def publish(self, path, basic=None, env=None, extra=None,
request_method='GET', stdin=None, handle_errors=True):
'''Publishes the object at 'path' returning a response object.'''
More information about the Erp5-report
mailing list