[Erp5-report] r11416 - /erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 21 17:05:48 CET 2006


Author: seb
Date: Tue Nov 21 17:05:47 2006
New Revision: 11416

URL: http://svn.erp5.org?rev=11416&view=rev
Log:
make sure the counter date is created with the right user

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

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py?rev=11416&r1=11415&r2=11416&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py Tue Nov 21 17:05:47 2006
@@ -155,6 +155,22 @@
 
     self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1,
                              line_list=line_list)
+    # now we need to create a user as Manager to do the test
+    # in order to have an assigment defined which is used to do transition
+    # Create an Organisation that will be used for users assignment
+    self.checkUserFolderType()
+    self.organisation = self.organisation_module.newContent(id='paris', portal_type='Organisation',
+                          function='banking', group='baobab',  site='testsite/paris')
+    # define the user
+    user_dict = {
+        'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1']
+      }
+    # call method to create this user
+    self.createERP5Users(user_dict)
+    self.logout()
+    self.login('super_user')
+    # open counter date and counter
+    self.openCounterDate(site=self.paris)
 
 
   def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):




More information about the Erp5-report mailing list