[FIX] stock: avoid false-positive in tests

As next activities are ordered by date, having the same date can implies
the order is not always the same.

closes odoo/odoo#34753

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
William Henrotin
2019-07-10 13:00:58 +00:00
parent 14812f4171
commit 671c71d7d8
+2 -2
View File
@@ -2368,5 +2368,5 @@ class TestRoutes(TestStockCommon):
picking_pick_2.scheduled_date += timedelta(days=2)
activity = picking_ship.activity_ids
self.assertEqual(len(activity), 2, 'not enough activity created')
self.assertTrue(picking_pick_1.name in activity[0].note, 'Wrong activity message')
self.assertTrue(picking_pick_2.name in activity[1].note, 'Wrong activity message')
self.assertTrue(picking_pick_1.name in activity[0].note + activity[1].note, 'Wrong activity message')
self.assertTrue(picking_pick_2.name in activity[0].note + activity[1].note, 'Wrong activity message')