Commit 913ca036 authored by Sebastien Robin's avatar Sebastien Robin

testMRP: define sorting of list before comparing them to avoid random issue

parent e19f3a81
......@@ -309,8 +309,9 @@ class TestMRPImplementation(TestMRPMixin):
for line in delivery.getMovementList():
found_line_list.append((line.getResourceValue(), line.getQuantity(),
line.getAggregateValue()))
found_line_list.sort()
expected_line_list.sort()
sortKey = lambda x: x[0].getRelativeUrl()
found_line_list.sort(key=sortKey)
expected_line_list.sort(key=sortKey)
self.assertEqual(expected_line_list, found_line_list)
def testOrderWithItem(self):
......
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