From 34f854f1cfec6a6d1fff84b82a654f827bc12d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 15 Mar 2015 21:22:40 +0100 Subject: [PATCH] Fix scenario to test cost line at quotation Since issue4531, the cost line is only created at quotation. --- tests/scenario_carrier_weight.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scenario_carrier_weight.rst b/tests/scenario_carrier_weight.rst index c79b74102a..113882335d 100644 --- a/tests/scenario_carrier_weight.rst +++ b/tests/scenario_carrier_weight.rst @@ -175,6 +175,7 @@ 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 @@ -182,7 +183,6 @@ Sale products with cost on shipment:: True >>> cost_line.amount Decimal('40.00') - >>> sale.click('quote') >>> sale.click('confirm') >>> sale.click('process') >>> sale.state @@ -236,6 +236,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 @@ -243,7 +244,6 @@ Sale products with cost on order:: True >>> cost_line.amount Decimal('25.00') - >>> sale.click('quote') >>> sale.click('confirm') >>> sale.click('process') >>> sale.state