From a4f125bcaeff72c0907973811d22e54c71487af5 Mon Sep 17 00:00:00 2001 From: David Harper Date: Thu, 19 Mar 2015 11:56:15 +0100 Subject: [PATCH] Fix test to work with cost on quote Since issue4531, the cost line is only created at quotation. issue4655 review15301002 --- ...nario_carrier_percentage_with_purchase_shipment_cost.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst b/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst index 3ffca39842..16c249de9f 100644 --- a/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst +++ b/tests/scenario_carrier_percentage_with_purchase_shipment_cost.rst @@ -162,14 +162,14 @@ Sale products with cost on shipment:: >>> sale_line = sale.lines.new() >>> sale_line.product = product >>> sale_line.quantity = 5.0 + >>> sale.click('quote') >>> cost_line = sale.lines[-1] >>> cost_line.product == carrier_product True >>> cost_line.quantity - 1 + 1.0 >>> cost_line.amount Decimal('15.00') - >>> sale.click('quote') >>> sale.click('confirm') >>> sale.click('process') >>> sale.state @@ -223,6 +223,7 @@ Sale products with cost on order:: >>> sale_line = sale.lines.new() >>> sale_line.product = product >>> sale_line.quantity = 3.0 + >>> sale.click('quote') >>> cost_line = sale.lines[-1] >>> cost_line.product == carrier_product True @@ -230,7 +231,6 @@ Sale products with cost on order:: True >>> cost_line.amount Decimal('9.00') - >>> sale.click('quote') >>> sale.click('confirm') >>> sale.click('process') >>> sale.state