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): ...@@ -169,7 +169,6 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
self.caissier_principal = self.banking.newContent(id='caissier_principal', portal_type='Category', codification='CCP') 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.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.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_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.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') self.caissier_particulier = self.banking.newContent(id='caissier_particulier', portal_type='Category', codification='CGU')
...@@ -205,7 +204,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -205,7 +204,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
# 'user_login': [['Global Role'], 'organisation', 'function', 'group', 'site'] # 'user_login': [['Global Role'], 'organisation', 'function', 'group', 'site']
# #
user_dict = { 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_2' : [[], self.organisation, 'banking/controleur_caisse' , 'baobab', 'testsite']
, 'user_3' : [[], self.organisation, 'banking/void_function' , 'baobab', 'testsite'] , 'user_3' : [[], self.organisation, 'banking/void_function' , 'baobab', 'testsite']
} }
...@@ -217,7 +216,8 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -217,7 +216,8 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
pass pass
# TODO: create local roles manually with PAS (don't know how to do yet). # TODO: create local roles manually with PAS (don't know how to do yet).
else: 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 # Create a Currency
self.currency_module = self.getCurrencyModule() self.currency_module = self.getCurrencyModule()
...@@ -365,7 +365,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -365,7 +365,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
for variation in self.variation_list: for variation in self.variation_list:
cell = line.getCell('emission_letter/k', variation, 'cash_status/valid') cell = line.getCell('emission_letter/k', variation, 'cash_status/valid')
cell.setQuantity(resource_quantity_dict[variation]) cell.setQuantity(resource_quantity_dict[variation])
# cell.setResourceValue(resource_object) # cell.setResourceValue(resource_object)
# cell.setDestinationValue(self.caisse_1) # cell.setDestinationValue(self.caisse_1)
# LOG("XXX set Resource Value >>>>>>",0, repr(resource_object)) # LOG("XXX set Resource Value >>>>>>",0, repr(resource_object))
# LOG("XXX set Destination Value >>>>>>",0, repr(self.caisse_1)) # LOG("XXX set Destination Value >>>>>>",0, repr(self.caisse_1))
......
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