Commit 2dade943 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Unit Definition now need validation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32243 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4622a8e7
......@@ -176,6 +176,7 @@ class TestResource(ERP5TypeTestCase):
weight_group = unit_conversion_module.newContent(id='weight',
portal_type='Quantity Unit Conversion Group',
quantity_unit='weight/kilo')
weight_group.validate()
gram_definition = weight_group._getOb('gram', None)
if gram_definition is None:
......@@ -183,6 +184,7 @@ class TestResource(ERP5TypeTestCase):
portal_type='Quantity Unit Conversion Definition',
quantity_unit='weight/gram',
quantity=0.001)
gram_definition.validate()
def stepCreateResource(self, sequence=None, sequence_list=None, **kw):
......
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