[Erp5-report] r9574 - /erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 31 11:20:18 CEST 2006


Author: seb
Date: Thu Aug 31 11:20:11 2006
New Revision: 9574

URL: http://svn.erp5.org?rev=9574&view=rev
Log:
make sure the user is logged in before creating checkbook and check

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

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py?rev=9574&r1=9573&r2=9574&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py Thu Aug 31 11:20:11 2006
@@ -136,18 +136,6 @@
                                                  currency=self.currency_1,
                                                  amount=100000)
 
-    # create a check
-    self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
-                                            vault=self.bi_counter,
-                                            bank_account=self.bank_account_1,
-                                            min=50,
-                                            max=100,
-                                            )
-
-    self.check_1 = self.createCheck(id='check_1',
-                                    reference='50',
-                                    checkbook=self.checkbook_1)
-
     # open counter date and counter
     self.openCounterDate(site=self.paris)
     self.openCounter(site=self.bi_counter_vault)
@@ -166,6 +154,18 @@
     self.createERP5Users(user_dict)
     self.logout()
     self.login('super_user')
+
+    # create a check
+    self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
+                                            vault=self.bi_counter,
+                                            bank_account=self.bank_account_1,
+                                            min=50,
+                                            max=100,
+                                            )
+
+    self.check_1 = self.createCheck(id='check_1',
+                                    reference='50',
+                                    checkbook=self.checkbook_1)
 
 
   def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):




More information about the Erp5-report mailing list