Commit 4cf1326c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix wrong property name.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36926 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17d72569
...@@ -910,7 +910,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -910,7 +910,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
) )
def createCheckbookModel(self, id, check_model, reference=None, def createCheckbookModel(self, id, check_model, reference=None,
unique_per_reference=True): unique_per_account=True):
""" """
Create a checkbook for the given bank account Create a checkbook for the given bank account
with 3 variations with 3 variations
...@@ -922,7 +922,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -922,7 +922,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
account_number_enabled=True, account_number_enabled=True,
reference=reference, reference=reference,
composition=check_model.getRelativeUrl(), composition=check_model.getRelativeUrl(),
unique_per_reference=unique_per_reference, unique_per_account=unique_per_account,
) )
model.newContent(id='variant_1', portal_type='Checkbook Model Check Amount Variation', model.newContent(id='variant_1', portal_type='Checkbook Model Check Amount Variation',
quantity=50, title='50') quantity=50, title='50')
...@@ -933,7 +933,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -933,7 +933,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
return model return model
def createCheckModel(self, id, reference='CCOP', **kw): def createCheckModel(self, id, reference='CCOP', unique_per_account=True):
""" """
Create a checkbook for the given bank account Create a checkbook for the given bank account
""" """
...@@ -943,7 +943,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -943,7 +943,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
title='Check', title='Check',
reference=reference, reference=reference,
account_number_enabled=True, account_number_enabled=True,
unique_per_reference=True, unique_per_account=unique_per_account,
) )
def createCheckAndCheckbookModel(self): def createCheckAndCheckbookModel(self):
...@@ -956,12 +956,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -956,12 +956,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
self.check_model_1_2 = self.createCheckModel( self.check_model_1_2 = self.createCheckModel(
id='check_model_1_2', id='check_model_1_2',
reference='CCOP', reference='CCOP',
unique_per_reference=False, unique_per_account=False,
) )
self.check_model_2_2 = self.createCheckModel( self.check_model_2_2 = self.createCheckModel(
id='check_model_2_2', id='check_model_2_2',
reference='CCCO', reference='CCCO',
unique_per_reference=False, unique_per_account=False,
) )
self.checkbook_model = self.createCheckbookModel( self.checkbook_model = self.createCheckbookModel(
id='checkbook_model', check_model=self.check_model) id='checkbook_model', check_model=self.check_model)
...@@ -971,12 +971,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase): ...@@ -971,12 +971,12 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
self.checkbook_model_1_2 = self.createCheckbookModel( self.checkbook_model_1_2 = self.createCheckbookModel(
id='checkbook_model_1_2', id='checkbook_model_1_2',
check_model=self.check_model_1_2, check_model=self.check_model_1_2,
unique_per_reference=False, unique_per_account=False,
) )
self.checkbook_model_2_2 = self.createCheckbookModel( self.checkbook_model_2_2 = self.createCheckbookModel(
id='checkbook_model_2_2', id='checkbook_model_2_2',
check_model=self.check_model_2_2, check_model=self.check_model_2_2,
unique_per_reference=False, unique_per_account=False,
) )
def createCheck(self, id, reference, checkbook, bank_account=None, def createCheck(self, id, reference, checkbook, bank_account=None,
......
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