[RMV]project_caldav: remove test file
bzr revid: dbr@tinyerp.com-20110923093820-3xfn39ju1dhq3w0c
This commit is contained in:
parent
1d715a371f
commit
f93536a356
|
@ -39,7 +39,7 @@
|
|||
remaining_hours: 30.0
|
||||
state: draft
|
||||
-
|
||||
I create task 'Training' for 'OpenERP Training Programme' project.
|
||||
I create child task 'Training' of 'OpenERP Training Programme' project.
|
||||
-
|
||||
!record {model: project.task, id: project_task_child0}:
|
||||
date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S')
|
||||
|
@ -154,7 +154,7 @@
|
|||
!python {model: project.project}: |
|
||||
self.onchange_partner_id(cr, uid, [ref("project_project_openerptrainingprogramme0")], part=ref('base.res_partner_asus'), context = {"lang": "en_US", "active_model": "ir.ui.menu", "active_ids": [ref("project.menu_open_view_project_all")],"tz": False, "active_id": ref("project.menu_open_view_project_all")})
|
||||
-
|
||||
I set project as project template.
|
||||
I set 'OpenERP Training Programme' project as project template.
|
||||
-
|
||||
!python {model: project.project}: |
|
||||
self.set_template(cr, uid, [ref("project_project_openerptrainingprogramme0")],
|
||||
|
@ -180,7 +180,7 @@
|
|||
name = new_prj['name']
|
||||
assert state == 'open', "Project in %s state. Project created from template project must be in open state"%state
|
||||
-
|
||||
I reset project template to normal project.
|
||||
I reset project template to normal project 'OpenERP Training Programme'.
|
||||
-
|
||||
!python {model: project.project}: |
|
||||
self.reset_project(cr, uid, [ref("project_project_openerptrainingprogramme0")], {"lang": "en_US", "active_ids":
|
||||
|
@ -209,7 +209,7 @@
|
|||
- state == "pending"
|
||||
-
|
||||
I cancel the project.
|
||||
-
|
||||
-
|
||||
!python {model: project.project}: |
|
||||
self.set_cancel(cr, uid, [ref("project_project_openerptrainingprogramme0")], {"lang": "en_US", "active_ids":
|
||||
[ref("project.menu_open_view_project_all")], "tz": False, "active_model":
|
||||
|
@ -255,7 +255,7 @@
|
|||
!python {model: project.task.reevaluate}: |
|
||||
self._get_remaining(cr, uid,{'active_id':ref('project_task_functionaltraining0') })
|
||||
- |
|
||||
I click the apply button.
|
||||
I click the apply button for compute hours.
|
||||
-
|
||||
!python {model: project.task.reevaluate}: |
|
||||
self.compute_hours(cr, uid, [ref('project_task_technicaltraining_remainingwiz0')], {'active_id': ref("project_task_technicaltraining0"),'button_reactivate': True})
|
||||
|
|
|
@ -34,7 +34,6 @@ on a remote server.
|
|||
"depends": ["project", "caldav", "base_calendar"],
|
||||
"init_xml": ["project_caldav_data.xml", 'project_caldav_setup.xml', ],
|
||||
"demo_xml": [],
|
||||
"test": ['test/test_project_caldav.yml'],
|
||||
"update_xml": ["project_caldav_view.xml"],
|
||||
"active": False,
|
||||
"website": "http://www.openerp.com",
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
- |
|
||||
Now Create test cases for project caldav
|
||||
-
|
||||
I create task 'Training task' for this project.
|
||||
-
|
||||
!record {model: project.task, id: project_task_technicaltasktraining}:
|
||||
date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S')
|
||||
name: Technical Training
|
||||
user_id: base.user_root
|
||||
planned_hours: 30.0
|
||||
date_deadline: !eval time.strftime('%Y-%m-%d 20:20:00')
|
||||
remaining_hours: 30.0
|
||||
state: draft
|
||||
-
|
||||
Open the created task.
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
context.update({'model':'project.task','active_id': ref('project_task_technicaltasktraining')})
|
||||
self.open_task(cr, uid, [ref('project_task_technicaltasktraining')], context)
|
||||
-
|
||||
Check the export functionality.
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
context.update({'model':'project.task','active_id': ref('project_task_technicaltasktraining')})
|
||||
self.export_cal(cr, uid, [ref('project_task_technicaltasktraining')], context)
|
||||
-
|
||||
Check the Import functionality with the define date.
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
import time
|
||||
vals = []
|
||||
context.update({'model':'project.task','active_id': ref('project_task_technicaltasktraining')})
|
||||
vals.append({
|
||||
'date': time.strftime('%Y-%m-%d 16:04:00'),
|
||||
'date_deadline':time.strftime('%Y-%m-%d 20:20:00'),
|
||||
})
|
||||
try:
|
||||
self.check_import(cr, uid, vals, context)
|
||||
except:
|
||||
pass
|
||||
-
|
||||
Check the export Import functionality with the planned hours.
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
import time
|
||||
vals = []
|
||||
context.update({'model':'project.task','active_id': ref('project_task_technicaltasktraining')})
|
||||
vals.append({
|
||||
'date': time.strftime('%Y-%m-%d 16:04:00'),
|
||||
'create_date': time.strftime('%Y-%m-%d 16:04:00'),
|
||||
'date_deadline':time.strftime('%Y-%m-%d 20:20:00'),
|
||||
'planned_hours':30.0,
|
||||
'ids':ref('project_task_technicaltasktraining'),
|
||||
'recurrent_id': time.strftime('%Y-%m-%d 50:00:00'),
|
||||
})
|
||||
try:
|
||||
self.check_import(cr, uid, vals, context)
|
||||
except:
|
||||
pass
|
Loading…
Reference in New Issue