[IMP] improved YML test case of Project
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Mon, 12 Dec 2011 11:57:57 +0000 (17:27 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Mon, 12 Dec 2011 11:57:57 +0000 (17:27 +0530)
bzr revid: tpa@tinyerp.com-20111212115757-ad9q8xzm8b38k2mo

addons/project/__openerp__.py
addons/project/test/project_process.yml
addons/project/test/task_process.yml

index 1a03232..067c0b4 100644 (file)
@@ -61,9 +61,9 @@ Dashboard for project members that includes:
         'project_demo.xml',
     ],
     'test':[
+        'test/project_demo.yml',
         'test/project_process.yml',
         'test/task_process.yml',
-        'test/project_demo.yml',
     ],
     'installable': True,
     'active': False,
index d162a5e..3c51c46 100644 (file)
@@ -59,7 +59,7 @@
   !python {model: project.project}: |
     self.schedule_tasks(cr, uid, [ref("project_integrate_openerp")], context=context)
 -
-  I set copy the tasks of project.
+  I copy the tasks of project.
 -
   !python {model: project.project}: |
     self.template_copy(cr, uid, ref("project_integrate_openerp"))
index 0938e64..3d9edb5 100644 (file)
   !record {model: project.task.reevaluate, id: reevaluate_id}:
     remaining_hours : 120
 -
-  I chnge the stage of task to previous stage
+  I change the stage of task to next stage.
 -
   !python {model: project.task}: |
-    self.prev_type(cr, uid, [ref("project_task_1")])
+    self.next_type(cr, uid, [ref("project_task_1")])
 -
   I reevaluate task with remaining hours.
 -
   !assert {model: project.task, id: project_task_1, severity: error, string: task should be reevaluated}:
     - remaining_hours == 120.0
 -
-  I chnge the stage of task to next stage
+  I change the stage of task to previous stage.
 -
   !python {model: project.task}: |
-    self.next_type(cr, uid, [ref("project_task_1")])
+    self.prev_type(cr, uid, [ref("project_task_1")])
 -
   I close the task.
 -