[Erp5-report] r44604 aurel - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 25 09:20:35 CET 2011


Author: aurel
Date: Fri Mar 25 09:20:35 2011
New Revision: 44604

URL: http://svn.erp5.org?rev=44604&view=rev
Log:
transaction is not a callable

Modified:
    erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterDate.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Fri Mar 25 09:20:35 2011
@@ -154,7 +154,7 @@ class TestERP5BankingMixin(ERP5TypeTestC
 
     if self.PAS_installed:
       # reindexing is required for the security to work
-      transaction().commit()
+      transaction.commit()
       self.tic()
 
 

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py [utf8] Fri Mar 25 09:20:35 2011
@@ -293,7 +293,7 @@ class TestERP5BankingCheckPaymentMixin(T
       self.workflow_tool.doActionFor(new_payment, 'plan_action', 
                                      wf_id='check_payment_workflow')
     self.assertEqual(new_payment.getSimulationState(), 'planned')
-    transaction().commit()
+    transaction.commit()
     if will_fail:
       message = self.assertWorkflowTransitionFails(new_payment,
                          'check_payment_workflow', 'confirm_action')
@@ -303,7 +303,7 @@ class TestERP5BankingCheckPaymentMixin(T
       if insuffisient_balance:
         self.assertTrue(message.find('Bank account is not sufficient')>=0)
       self.assertEqual(new_payment.getSimulationState(), 'planned')
-      transaction().commit()
+      transaction.commit()
       self.workflow_tool.doActionFor(new_payment, 'reject_action', 
                                      wf_id='check_payment_workflow')
       self.workflow_tool.doActionFor(new_payment, 'cancel_action', 
@@ -314,7 +314,7 @@ class TestERP5BankingCheckPaymentMixin(T
                         new_payment, 'confirm_action', 
                         wf_id='check_payment_workflow')
       self.assertEqual(new_payment.getSimulationState(), 'confirmed')
-      transaction().commit()
+      transaction.commit()
       if check_pay_will_fail:
         self.stepInputCashDetails(check_payment=new_payment)
         message = self.assertWorkflowTransitionFails(new_payment,

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py [utf8] Fri Mar 25 09:20:35 2011
@@ -119,7 +119,7 @@ class TestERP5BankingCheckbookDeliveryMi
     # in the source
     self.createCheckbookReception()
     self.checkItemsCreated()
-    transaction().commit()
+    transaction.commit()
     self.tic()
     self.createCheckbookVaultTransfer()
 

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py [utf8] Fri Mar 25 09:20:35 2011
@@ -177,7 +177,7 @@ class TestERP5BankingCheckbookUsualCashT
     # in the source
     self.createCheckbookReception()
     self.checkItemsCreated()
-    transaction().commit()
+    transaction.commit()
     self.tic()
     self.createCheckbookVaultTransfer()
 

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py [utf8] Fri Mar 25 09:20:35 2011
@@ -71,7 +71,7 @@ class TestERP5BankingCheckbookVaultTrans
                                    wf_id='checkbook_reception_workflow')
     self.workflow_tool.doActionFor(self.checkbook_reception, 'deliver_action', 
                                    wf_id='checkbook_reception_workflow')
-    transaction().commit()
+    transaction.commit()
     self.tic()
 
   def createCheckbookReceptionWithTravelerCheck(self, sequence=None, 

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterDate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterDate.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterDate.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterDate.py [utf8] Fri Mar 25 09:20:35 2011
@@ -77,7 +77,7 @@ class TestERP5BankingCounterDate(TestERP
     self.login('super_user')
     counter_date_module = self.getPortal().counter_date_module
     counter_date_module.manage_delObjects(ids=[x for x in counter_date_module.objectIds()])
-    transaction().commit()
+    transaction.commit()
     self.tic()
 
   def openCounterDate(self, date=None, site=None, id='counter_date_1', open=True, force_check=0):
@@ -113,7 +113,7 @@ class TestERP5BankingCounterDate(TestERP
       ZopeTestCase._print('\n%s ' % message)
       LOG('Testing... ', 0, message)
     self.openCounterDate(site=self.paris, id='counter_date_1')
-    transaction().commit()
+    transaction.commit()
     self.tic()
     self.openCounterDate(site=self.paris, id='counter_date_2', open=0)
     # open counter date and counter
@@ -181,7 +181,7 @@ class TestERP5BankingCounterDate(TestERP
       counter_date = getattr(self, id)
       self.assertEquals(counter_date.getReference(), reference)
       counter_date.close()
-      transaction().commit()
+      transaction.commit()
       self.tic()
 
     # Starts at one
@@ -190,12 +190,12 @@ class TestERP5BankingCounterDate(TestERP
     openAndTest(self.paris, DateTime('2008/01/02'), '2')
     # Monotonous: create one but leave it in draft, check same day
     self.openCounterDate(site=self.paris, id='counter_date_2008_01_03_paris_draft', date=DateTime('2008/01/03'), open=0)
-    transaction().commit()
+    transaction.commit()
     self.tic()
     openAndTest(self.paris, DateTime('2008/01/03'), '3')
     # Monotonous: create one but leave it in draft, check next day
     self.openCounterDate(site=self.paris, id='counter_date_2008_01_04_paris_draft', date=DateTime('2008/01/04'), open=0)
-    transaction().commit()
+    transaction.commit()
     self.tic()
     openAndTest(self.paris, DateTime('2008/01/05'), '4')
     # Site-scoped
@@ -217,7 +217,7 @@ class TestERP5BankingCounterDate(TestERP
       ZopeTestCase._print('\n%s ' % message)
       LOG('Testing... ', 0, message)
     self.openCounterDate(site=self.paris, id='counter_date_1')
-    transaction().commit()
+    transaction.commit()
     self.openCounterDate(site=self.paris, id='counter_date_2', open=0)
     # open counter date and counter
     self.assertRaises(ValidationFailed,

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py?rev=44604&r1=44603&r2=44604&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py [utf8] Fri Mar 25 09:20:35 2011
@@ -144,19 +144,19 @@ class TestERP5BankingTravelerCheckSaleMi
     # in the source
     self.traveler_check_model = self.createTravelerCheckModel('traveler_check_model')
     self.createCheckbookReceptionWithTravelerCheck()
-    transaction().commit()
+    transaction.commit()
     self.tic()
     self.checkItemsCreatedWithTravelerCheck()
-    transaction().commit()
+    transaction.commit()
     self.tic()
     self.createCheckbookVaultTransferWithTravelerCheck()
-    transaction().commit()
+    transaction.commit()
     self.tic()
     # open counter date and counter
     self.openCounterDate(site=self.paris)
     self.openCounter(site=self.destination_site)
     self.createCheckbookUsualCashTransferWithTravelerCheck()
-    transaction().commit()
+    transaction.commit()
     self.tic()
 
   def stepCreateTravelerCheckLineList(self, sequence=None, sequence_list=None, **kwd):



More information about the Erp5-report mailing list