From d0052a01e678a5a735002e588d9375b7ba5981bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 5 Mar 2016 17:21:54 +0100 Subject: [PATCH] Don't rely on record ordering in scenario Since changeset 153863383394 of proetus, there is no stable ordering of record instance, so we must order on id instead. issue5347 review23911002 --- tests/scenario_sale_shipment_cost.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scenario_sale_shipment_cost.rst b/tests/scenario_sale_shipment_cost.rst index 5412073646..a6795acf4c 100644 --- a/tests/scenario_sale_shipment_cost.rst +++ b/tests/scenario_sale_shipment_cost.rst @@ -176,8 +176,8 @@ Check customer invoice:: >>> sale.reload() >>> invoice, = sale.invoices - >>> sorted([l.product for l in invoice.lines]) == \ - ... sorted([product, carrier_product]) + >>> sorted([l.product.id for l in invoice.lines]) == \ + ... sorted([product.id, carrier_product.id]) True >>> invoice.untaxed_amount Decimal('83.00')