[Erp5-report] r36674 gregory - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 29 14:05:11 CEST 2010


Author: gregory
Date: Tue Jun 29 14:05:10 2010
New Revision: 36674

URL: http://svn.erp5.org?rev=36674&view=rev
Log:
Add local patch on ERP5Banking tests into 1.0.x branch.

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

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=36674&r1=36673&r2=36674&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Tue Jun 29 14:05:10 2010
@@ -300,6 +300,16 @@ class TestERP5BankingMixin(ERP5TypeTestC
     """
     return getattr(self.getPortal(), 'counter_module', None)
 
+  def stepTic(self, **kwd):
+    """
+    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
+    """
+    # execute transaction
+    get_transaction().commit()
+    self.tic()
+
   def createCurrency(self, currency_list=(('EUR', 'Euro', 1/652., 1/650., 'USD'), ('USD', 'USD', 652, 650., 'EUR')), only_currency=False):
     # create the currency document for euro inside the currency module
     #currency_list = (('EUR', 'Euro', 1/650., 'USD'), ('USD', 'Dollar', 650., 'EUR'))




More information about the Erp5-report mailing list