From cf262b495e5ee987a57b7bee06d4e5b94229530b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Jan 2017 23:00:14 +0100 Subject: [PATCH] Test move state when clicking do in scenario As transition can be skipped, it is better to test the state to remove questions when scenario is failing. --- tests/scenario_stock_supply_production.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scenario_stock_supply_production.rst b/tests/scenario_stock_supply_production.rst index 2f861829a3..ea37a130dc 100644 --- a/tests/scenario_stock_supply_production.rst +++ b/tests/scenario_stock_supply_production.rst @@ -52,6 +52,8 @@ Create a need for product:: >>> move.from_location = storage_loc >>> move.to_location = lost_loc >>> move.click('do') + >>> move.state + u'done' The is no production request::