Commit 07bd8f1e authored by Sebastien Robin's avatar Sebastien Robin

make sure the counter date is created with the right user

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11416 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1360936e
...@@ -155,6 +155,22 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -155,6 +155,22 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1, self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1,
line_list=line_list) 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): def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
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