summaryrefslogtreecommitdiff
path: root/addons/project/test/task_process.yml
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-12 17:58:58 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-12 17:58:58 +0530
commit97424370c6dc8646e7e094d9da94eb33eeeabae5 (patch)
tree164f9ccf006a290b935dd5591216cf66291f1017 /addons/project/test/task_process.yml
parent053270ae0d6e638789726fc3f0035a1efbf180f0 (diff)
[IMP] improved YML test case of Project
bzr revid: tpa@tinyerp.com-20111212122858-hcmybqd9sinpfzs8
Diffstat (limited to 'addons/project/test/task_process.yml')
-rw-r--r--addons/project/test/task_process.yml16
1 files 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
@@ -37,14 +37,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.
-
!python {model: project.task.reevaluate}: |
@@ -55,11 +55,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.
-
!python {model: project.task}: |
@@ -70,6 +65,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.
-
!python {model: project.task}: |