Commit c0d662da authored by Jérome Perrin's avatar Jérome Perrin

use ERP5TypeTestCase.validateRules to validate rules


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24849 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f83390f
...@@ -46,9 +46,7 @@ class TradeConditionTestCase(ERP5TypeTestCase): ...@@ -46,9 +46,7 @@ class TradeConditionTestCase(ERP5TypeTestCase):
def setUp(self): def setUp(self):
ERP5TypeTestCase.setUp(self) ERP5TypeTestCase.setUp(self)
for rule in self.portal.portal_rules.contentValues(): self.validateRules()
if rule.getPortalType() != 'Payment Rule':
rule.validate() # XXX this should be enabled !
self.base_amount = self.portal.portal_categories.base_amount self.base_amount = self.portal.portal_categories.base_amount
self.tax = self.portal.tax_module.newContent( self.tax = self.portal.tax_module.newContent(
portal_type='Tax', portal_type='Tax',
......
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