Commit 020e0d35 authored by Aurel's avatar Aurel

allow to speicify id of counter as parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3d1aac2
...@@ -561,6 +561,7 @@ class TestERP5BankingMixin: ...@@ -561,6 +561,7 @@ class TestERP5BankingMixin:
site = self.testsite site = self.testsite
# create a counter date # create a counter date
counter_date_module = self.getCounterDateModule() counter_date_module = self.getCounterDateModule()
counter_date = counter_date_module.newContent(id='counter_date_1', portal_type="Counter Date", counter_date = counter_date_module.newContent(id='counter_date_1', portal_type="Counter Date",
site_value = site, site_value = site,
start_date = date) start_date = date)
...@@ -568,13 +569,13 @@ class TestERP5BankingMixin: ...@@ -568,13 +569,13 @@ class TestERP5BankingMixin:
counter_date.open() counter_date.open()
def openCounter(self, site=None): def openCounter(self, site=None, id='counter_1'):
""" """
open a counter for the givent site open a counter for the givent site
""" """
# create a counter # create a counter
counter_module = self.getCounterModule() counter_module = self.getCounterModule()
counter = counter_module.newContent(id='counter_1', site_value=site) counter = counter_module.newContent(id=id, site_value=site)
# open it # open it
counter.open() counter.open()
......
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