Commit ca287915 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* fix rule id

* use setUpOnce instead of afterSetUp with recording set_up_once_called.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32649 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11d4156f
...@@ -38,7 +38,7 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase): ...@@ -38,7 +38,7 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase):
""" """
run_all_test = 1 run_all_test = 1
quiet = 0 quiet = 0
rule_id = 'default_delivering_rule' rule_id = 'default_delivering_simulation_rule'
def getTitle(self): def getTitle(self):
return "Divergence Tester" return "Divergence Tester"
...@@ -83,15 +83,11 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase): ...@@ -83,15 +83,11 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase):
sequence_list.play(self, quiet=self.quiet) sequence_list.play(self, quiet=self.quiet)
self.logMessage("Bootstrap finished") self.logMessage("Bootstrap finished")
def afterSetUp(self, quiet=1, run=run_all_test): def setUpOnce(self, quiet=1, run=run_all_test):
""" """
Create an order and generate a packing list from it. Create an order and generate a packing list from it.
This has to be called only once. This has to be called only once.
""" """
if getattr(self.portal, 'set_up_once_called', 0):
return
else:
self.portal.set_up_once_called = 1
self.validateRules() self.validateRules()
self.bootstrapSite() self.bootstrapSite()
......
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