summaryrefslogtreecommitdiff
path: root/addons/project_long_term/test/schedule_project_tasks.yml
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2011-11-28 18:23:28 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2011-11-28 18:23:28 +0530
commit5ea00d2f0c270cd6315251f241d4c51674be9bfa (patch)
tree6322499b66b99eb93ce92b3ef2365ea14e7a44c6 /addons/project_long_term/test/schedule_project_tasks.yml
parentbe3f9fa4362d095d6d5268f46e433c7bcbf5b2e3 (diff)
[IMP] project_long_term: improve YML test cases of phase
bzr revid: hmo@tinyerp.com-20111128125328-vd4ovcibw844y0d7
Diffstat (limited to 'addons/project_long_term/test/schedule_project_tasks.yml')
-rw-r--r--addons/project_long_term/test/schedule_project_tasks.yml25
1 files changed, 0 insertions, 25 deletions
diff --git a/addons/project_long_term/test/schedule_project_tasks.yml b/addons/project_long_term/test/schedule_project_tasks.yml
deleted file mode 100644
index 1acbfaa97cc..00000000000
--- a/addons/project_long_term/test/schedule_project_tasks.yml
+++ /dev/null
@@ -1,25 +0,0 @@
--
- I create a record to compute the tasks of project.
--
- !record {model: project.compute.tasks, id: project_compute_tasks0}:
- project_id: project.project_integrate_openerp
--
- I compute the tasks.
--
- !python {model: project.compute.tasks}: |
- self.compute_date(cr, uid, [ref("project_compute_tasks0")])
--
- I Schedule tasks.
--
- !python {model: project.project}: |
- self.schedule_tasks(cr, uid, ref("project.project_integrate_openerp"))
--
- Check if tasks scheduled, check that either of task's start_date, end_date and user_id is not null
--
- !python {model: project.project}: |
- prj = self.browse(cr, uid, [ref("project.project_integrate_openerp")])[0]
- for task in prj.tasks:
- if task.state in ('done','cancelled'):
- continue
- if (not task.user_id) or (not task.date_start) or (not task.date_end):
- raise AssertionError("Project tasks not scheduled!") \ No newline at end of file