Commit 8a445824 authored by Sebastien Robin's avatar Sebastien Robin

make sure the user is logged in before creating checkbook and check

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9574 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2385222e
...@@ -136,18 +136,6 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -136,18 +136,6 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase):
currency=self.currency_1, currency=self.currency_1,
amount=100000) amount=100000)
# create a check
self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
vault=self.bi_counter,
bank_account=self.bank_account_1,
min=50,
max=100,
)
self.check_1 = self.createCheck(id='check_1',
reference='50',
checkbook=self.checkbook_1)
# open counter date and counter # open counter date and counter
self.openCounterDate(site=self.paris) self.openCounterDate(site=self.paris)
self.openCounter(site=self.bi_counter_vault) self.openCounter(site=self.bi_counter_vault)
...@@ -167,6 +155,18 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -167,6 +155,18 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase):
self.logout() self.logout()
self.login('super_user') self.login('super_user')
# create a check
self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
vault=self.bi_counter,
bank_account=self.bank_account_1,
min=50,
max=100,
)
self.check_1 = self.createCheck(id='check_1',
reference='50',
checkbook=self.checkbook_1)
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