[IMP] improved YML test case of Project
bzr revid: tpa@tinyerp.com-20111212115757-ad9q8xzm8b38k2mo
This commit is contained in:
parent
7b052fa0a3
commit
053270ae0d
|
@ -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,
|
||||
|
|
|
@ -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"))
|
||||
|
|
|
@ -40,10 +40,10 @@
|
|||
!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.
|
||||
-
|
||||
|
@ -55,10 +55,10 @@
|
|||
!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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue