Commit b2264c13 authored by Nicolas Dumazet's avatar Nicolas Dumazet

fail with AssertionError instead of KeyError if getCellKeyList returns []


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35085 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b3a7a96
......@@ -2192,7 +2192,9 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
# add cell to line, line is not a movement anymore
order_line.setVariationCategoryList(order_line_vcl)
cell_key = order_line.getCellKeyList(base_id=base_id)[0]
cell_key_list = order_line.getCellKeyList(base_id=base_id)
self.assertTrue(len(cell_key_list) > 0)
cell_key = cell_key_list[0]
cell = order_line.newCell(
base_id=base_id,
portal_type=self.order_cell_portal_type,
......
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