[IMP] improved YML test case of Project

bzr revid: tpa@tinyerp.com-20111212122858-hcmybqd9sinpfzs8
This commit is contained in:
Turkesh Patel (Open ERP)
2011-12-12 17:58:58 +05:30
parent 053270ae0d
commit 97424370c6
+8 -8
View File
@@ -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.
-