From 146d990eac8d2a0b47eb282e56ee2410ef95b406 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 26 Jan 2009 08:06:20 +0000 Subject: [PATCH] at least one default_delivery_rule should be validated here to confirm Sale Packing List in afterSetUp(). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25299 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testRule.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testRule.py b/product/ERP5/tests/testRule.py index 0adc509538..70bd31da32 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) -- 2.30.9