Commit 04fa8bdc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

oops, test invalidation should be done in afterSetUp() otherwise...

oops, test invalidation should be done in afterSetUp() otherwise TestPackingListMixin.afterSetUp() will validate all existing rules.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31523 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 102c4dbf
......@@ -45,13 +45,11 @@ class TestERP5SimulationMixin(TestPackingListMixin):
def afterSetUp(self, quiet=1, run=1):
TestPackingListMixin.afterSetUp(self, quiet, run)
self.validateNewRules()
def beforeTearDown(self):
portal_rules = self.portal.portal_rules
for rule in portal_rules.objectValues(portal_type='New Order Rule'):
if rule.getValidationState() == 'validated':
rule.invalidate()
self.validateNewRules()
class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
run_all_test = 1
......
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