Commit de786dc3 authored by Aurel's avatar Aurel

change role of user_1 in test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5055 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 697858fd
......@@ -169,7 +169,6 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
self.caissier_principal = self.banking.newContent(id='caissier_principal', portal_type='Category', codification='CCP')
self.controleur_caisse = self.banking.newContent(id='controleur_caisse', portal_type='Category', codification='CCT')
self.void_function = self.banking.newContent(id='void_function', portal_type='Category', codification='VOID')
self.gestionnaire_caisse_courante = self.banking.newContent(id='gestionnaire_caisse_courante', portal_type='Category', codification='CCO')
self.gestionnaire_caveau = self.banking.newContent(id='gestionnaire_caveau', portal_type='Category', codification='CCV')
self.caissier_particulier = self.banking.newContent(id='caissier_particulier', portal_type='Category', codification='CGU')
......@@ -205,7 +204,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
# 'user_login': [['Global Role'], 'organisation', 'function', 'group', 'site']
#
user_dict = {
'user_1' : [[], self.organisation, 'banking/caissier_principal', 'baobab', 'testsite']
'user_1' : [[], self.organisation, 'banking/gestionnaire_caisse_courante', 'baobab', 'testsite']
, 'user_2' : [[], self.organisation, 'banking/controleur_caisse' , 'baobab', 'testsite']
, 'user_3' : [[], self.organisation, 'banking/void_function' , 'baobab', 'testsite']
}
......@@ -217,7 +216,8 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
pass
# TODO: create local roles manually with PAS (don't know how to do yet).
else:
self.cash_transfer_module.manage_addLocalGroupRoles('CCP_BAOBAB_TEST', ('Author',))
# The group local roles must be the one for gestionnaire_caisse_courante
self.cash_transfer_module.manage_addLocalGroupRoles('CCO_BAOBAB_TEST', ('Author',))
# Create a Currency
self.currency_module = self.getCurrencyModule()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment