From 6bfc352916f24e93447466207367be5672616763 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Mon, 21 Apr 2014 11:52:15 +0200 Subject: [PATCH] Fix tests. --- tests/scenario_product_cost_plan_operation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/scenario_product_cost_plan_operation.rst b/tests/scenario_product_cost_plan_operation.rst index 2965f54..ff3a82b 100644 --- a/tests/scenario_product_cost_plan_operation.rst +++ b/tests/scenario_product_cost_plan_operation.rst @@ -245,6 +245,9 @@ Create a cost plan for 10 units:: >>> plan.product = product >>> plan.route = route >>> plan.quantity = 1 + >>> plan.save() + >>> CostPlan.compute([plan.id], config.context) + >>> plan.reload() >>> len(plan.operations) == 2 True >>> plan.save()