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): ...@@ -92,12 +92,14 @@ class TestApparelModel(ERP5TypeTestCase):
apparel_fabric.updateCellRange(base_id='composition') apparel_fabric.updateCellRange(base_id='composition')
# create composition cells # create composition cells
acrylique = apparel_fabric.newCell('composition/acrylique', apparel_fabric.newCell('composition/acrylique',
base_id='composition', portal_type='Mapped Value') base_id='composition',
acrylique.setQuantity(0.88) portal_type='Mapped Value',
elasthane = apparel_fabric.newCell('composition/elasthane', quantity = 0.88)
base_id='composition', portal_type='Mapped Value') apparel_fabric.newCell('composition/elasthane',
elasthane.setQuantity(0.12) base_id='composition',
portal_type='Mapped Value',
quantity = 0.12)
# add some color variations # add some color variations
fabric_color1 = apparel_fabric.newContent(portal_type='Apparel Fabric Colour Variation', 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