Commit bcf7b673 authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix testApparelModel: setQuantity does not exist on cells


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3a1d3867
......@@ -92,12 +92,14 @@ class TestApparelModel(ERP5TypeTestCase):
apparel_fabric.updateCellRange(base_id='composition')
# create composition cells
acrylique = apparel_fabric.newCell('composition/acrylique',
base_id='composition', portal_type='Mapped Value')
acrylique.setQuantity(0.88)
elasthane = apparel_fabric.newCell('composition/elasthane',
base_id='composition', portal_type='Mapped Value')
elasthane.setQuantity(0.12)
apparel_fabric.newCell('composition/acrylique',
base_id='composition',
portal_type='Mapped Value',
quantity = 0.88)
apparel_fabric.newCell('composition/elasthane',
base_id='composition',
portal_type='Mapped Value',
quantity = 0.12)
# add some color variations
fabric_color1 = apparel_fabric.newContent(portal_type='Apparel Fabric Colour Variation',
......
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