diff --git a/product/ERP5/tests/testRule.py b/product/ERP5/tests/testRule.py index 0adc509538f6d9d86db88e86aad2adfeb947d607..70bd31da32095d3dba94bc8c91ab9df7e111d461 100644 --- a/product/ERP5/tests/testRule.py +++ b/product/ERP5/tests/testRule.py @@ -47,9 +47,12 @@ class TestRuleMixin(TestOrderMixin): self.getRuleTool().newContent(portal_type="Order Rule", id='default_order_rule', reference='default_order_rule', version='1') - self.getRuleTool().newContent(portal_type="Delivery Rule", + delivery_rule = self.getRuleTool().newContent(portal_type="Delivery Rule", id='default_delivery_rule', reference='default_delivery_rule', version='1') + # at least one default_delivery_rule should be validated here to + # confirm Sale Packing List in afterSetUp() + delivery_rule.validate() # create packing list if necessary pl_module = self.getPortal().getDefaultModule( self.packing_list_portal_type)