Commit 3fa50c21 authored by Klaus Wölfel's avatar Klaus Wölfel

item: check id and parent instead of url in test_Item_getTrackingList_explanation_brain_attribute

Since 8a6c4394 Item_getTrackingList sets
parent and id on brain instead of url.

testItem now passes: https://nexedijs.erp5.net/#/test_result_module/20190625-614B59A1

/reviewed-on nexedi/erp5!898
parent d0310869
...@@ -1114,7 +1114,8 @@ class TestItemScripts(ERP5TypeTestCase): ...@@ -1114,7 +1114,8 @@ class TestItemScripts(ERP5TypeTestCase):
self.assertEqual('explanation title', history_item.explanation) self.assertEqual('explanation title', history_item.explanation)
self.assertEqual('Sale Packing List Line', history_item.translated_portal_type) self.assertEqual('Sale Packing List Line', history_item.translated_portal_type)
self.assertEqual(1, history_item.quantity) self.assertEqual(1, history_item.quantity)
self.assertEqual(line.absolute_url(), history_item.url) self.assertEqual(line.getId(), history_item.getId())
self.assertEqual(line.getParentValue(), history_item.getParentValue())
self.assertEqual((), history_item.variation_category_item_list) self.assertEqual((), history_item.variation_category_item_list)
self.assertEqual('Delivered', history_item.simulation_state) self.assertEqual('Delivered', history_item.simulation_state)
......
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