From 97424370c6dc8646e7e094d9da94eb33eeeabae5 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Mon, 12 Dec 2011 17:58:58 +0530 Subject: [PATCH] [IMP] improved YML test case of Project bzr revid: tpa@tinyerp.com-20111212122858-hcmybqd9sinpfzs8 --- addons/project/test/task_process.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/project/test/task_process.yml b/addons/project/test/task_process.yml index 3d9edb54e57..73250de2963 100644 --- a/addons/project/test/task_process.yml +++ b/addons/project/test/task_process.yml @@ -36,14 +36,14 @@ - !assert {model: project.task, id: project_task_1, severity: error, string: task should be open.}: - state == "open" -- - !record {model: project.task.reevaluate, id: reevaluate_id}: - remaining_hours : 120 - I change the stage of task to next stage. - !python {model: project.task}: | self.next_type(cr, uid, [ref("project_task_1")]) +- + !record {model: project.task.reevaluate, id: reevaluate_id}: + remaining_hours : 120 - I reevaluate task with remaining hours. - @@ -54,11 +54,6 @@ - !assert {model: project.task, id: project_task_1, severity: error, string: task should be reevaluated}: - remaining_hours == 120.0 -- - I change the stage of task to previous stage. -- - !python {model: project.task}: | - self.prev_type(cr, uid, [ref("project_task_1")]) - I close the task. - @@ -69,6 +64,11 @@ - !assert {model: project.task, id: project_task_1, severity: error, string: task is in open state}: - state == "done" +- + I change the stage of task to previous stage. +- + !python {model: project.task}: | + self.prev_type(cr, uid, [ref("project_task_1")]) - I cancel Task. -