[Erp5-report] r13554 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 22 13:21:50 CET 2007
Author: vincent
Date: Thu Mar 22 13:21:46 2007
New Revision: 13554
URL: http://svn.erp5.org?rev=13554&view=rev
Log:
Create super_user and use it to create counter date document.
Modified:
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py?rev=13554&r1=13553&r2=13554&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py Thu Mar 22 13:21:46 2007
@@ -164,7 +164,18 @@
self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1,
line_list=line_list)
-
+ # Create an Organisation that will be used for users assignment
+ self.checkUserFolderType()
+ self.organisation = self.organisation_module.newContent(id='baobab_org', 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')
self.openCounterDate(site=self.paris)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py?rev=13554&r1=13553&r2=13554&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py Thu Mar 22 13:21:46 2007
@@ -124,6 +124,18 @@
self.cash = self.paris.caveau.auxiliaire.encaisse_des_billets_a_ventiler_et_a_detruire
self.counter = self.paris.caveau.auxiliaire.encaisse_des_billets_ventiles_et_detruits
self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1, line_list=line_list)
+ # Create an Organisation that will be used for users assignment
+ self.checkUserFolderType()
+ self.organisation = self.organisation_module.newContent(id='baobab_org', 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')
self.openCounterDate(site=self.paris)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py?rev=13554&r1=13553&r2=13554&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py Thu Mar 22 13:21:46 2007
@@ -164,6 +164,18 @@
self.auxiliaire = self.paris.caveau.auxiliaire.encaisse_des_billets_et_monnaies
self.createCashInventory(source=None, destination=self.caisse_courante, currency=self.currency_1,
line_list=line_list)
+ # Create an Organisation that will be used for users assignment
+ self.checkUserFolderType()
+ self.organisation = self.organisation_module.newContent(id='baobab_org', 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')
self.openCounterDate(site=self.paris)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py?rev=13554&r1=13553&r2=13554&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py Thu Mar 22 13:21:46 2007
@@ -168,6 +168,18 @@
self.createCashInventory(source=None, destination=self.auxiliaire, currency=self.currency_1,
line_list=line_list)
self.salle_tri = self.paris.surface.salle_tri.encaisse_des_billets_et_monnaies
+ # Create an Organisation that will be used for users assignment
+ self.checkUserFolderType()
+ self.organisation = self.organisation_module.newContent(id='baobab_org', 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/caisse_courante/encaisse_des_billets_et_monnaies']
+ }
+ # call method to create this user
+ self.createERP5Users(user_dict)
+ self.logout()
+ self.login('super_user')
self.openCounterDate(site=self.paris)
More information about the Erp5-report
mailing list