Commit ce076dcd authored by Aurel's avatar Aurel

use local variable for counter and counter date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8475 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b211733
...@@ -468,12 +468,12 @@ class TestERP5BankingMixin: ...@@ -468,12 +468,12 @@ class TestERP5BankingMixin:
if site is None: if site is None:
site = self.testsite site = self.testsite
# create a counter date # create a counter date
self.counter_date_module = self.getCounterDateModule() counter_date_module = self.getCounterDateModule()
self.counter_date = self.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)
# open the counter date # open the counter date
self.counter_date.open() counter_date.open()
def openCounter(self, site=None): def openCounter(self, site=None):
...@@ -481,10 +481,10 @@ class TestERP5BankingMixin: ...@@ -481,10 +481,10 @@ class TestERP5BankingMixin:
open a counter for the givent site open a counter for the givent site
""" """
# create a counter # create a counter
self.counter_module = self.getCounterModule() counter_module = self.getCounterModule()
self.counter = self.counter_module.newContent(id='counter_1', site_value=site) counter = counter_module.newContent(id='counter_1', site_value=site)
# open it # open it
self.counter.open() counter.open()
def initDefaultVariable(self): def initDefaultVariable(self):
......
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