Commit dbd30c02 authored by Nicolas Delaby's avatar Nicolas Delaby

Field values are passed as arguments action script method of Form.

reading the request is a hack


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41902 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 014d9519
...@@ -441,8 +441,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase): ...@@ -441,8 +441,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase):
}, },
) )
self.portal.REQUEST.set('type', 'Item') packing_list_line.DeliveryLine_createItemList(type='Item', listbox=listbox)
packing_list_line.DeliveryLine_createItemList(listbox=listbox)
transaction.commit() transaction.commit()
self.tic() self.tic()
self.assertEquals( self.assertEquals(
...@@ -509,8 +508,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase): ...@@ -509,8 +508,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase):
'line_variation_category_list': 'size/product_module/2/3', 'line_variation_category_list': 'size/product_module/2/3',
}, },
) )
self.portal.REQUEST.set('type', 'Item') packing_list_line.DeliveryLine_createItemList(type='Item', listbox=listbox)
packing_list_line.DeliveryLine_createItemList(listbox=listbox)
self.assertEquals(packing_list_line.getVariationCategoryList(), self.assertEquals(packing_list_line.getVariationCategoryList(),
['size/product_module/2/3']) ['size/product_module/2/3'])
self.assertEquals(packing_list_line.getTotalQuantity(), 20) self.assertEquals(packing_list_line.getTotalQuantity(), 20)
...@@ -592,8 +590,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase): ...@@ -592,8 +590,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase):
'quantity': 15.0, 'quantity': 15.0,
}, },
) )
self.portal.REQUEST.set('type', 'Item') packing_list_line.DeliveryLine_createItemList(type='Item', listbox=listbox)
packing_list_line.DeliveryLine_createItemList(listbox=listbox)
transaction.commit() transaction.commit()
self.tic() self.tic()
self.assertEquals( self.assertEquals(
...@@ -646,8 +643,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase): ...@@ -646,8 +643,7 @@ class TestItem(TestItemMixin, ERP5TypeTestCase):
}, },
) )
self.portal.REQUEST.set('type', 'Item') packing_list_line.DeliveryLine_createItemList(type='Item', listbox=listbox)
packing_list_line.DeliveryLine_createItemList(listbox=listbox)
transaction.commit() transaction.commit()
self.tic() self.tic()
item = [x.getObject() for x in self.portal.portal_catalog( item = [x.getObject() for x in self.portal.portal_catalog(
......
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