Commit 7f099b0b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use installed new_order_rule for testing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32215 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 466f6eaa
......@@ -475,14 +475,19 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
run_all_test = 1
quiet = 0
def validateNewRules(self):
# create an Order Rule document.
portal_rules = self.portal.portal_rules
new_order_rule = filter(
lambda x:x.title == 'New Simple Order Rule',
portal_rules.objectValues(portal_type='Order Rule'))[0]
if new_order_rule.getValidationState() != 'validated':
new_order_rule.validate()
def afterSetUp(self):
TestERP5SimulationMixin.afterSetUp(self)
new_order_rule = self.portal.portal_rules['new_order_rule']
new_order_rule['quantity_tester'].edit(quantity=None,
quantity_range_max=2,
quantity_range_min=-1)
def beforeTearDown(self):
new_order_rule = self.portal.portal_rules['new_order_rule']
new_order_rule['quantity_tester'].edit(quantity=None,
quantity_range_max=2,
quantity_range_min=-1)
TestERP5SimulationMixin.beforeTearDown(self)
def _modifyPackingListLineQuantity(self, sequence=None,
sequence_list=None, delta=0.0):
......
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