summaryrefslogtreecommitdiff
path: root/addons/project_long_term/test/task_process.yml
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-13 10:50:12 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-13 10:50:12 +0530
commit2c6a90384bb93553e4c101b38939f13190d017f8 (patch)
tree83b4e577005fd21b4fa2e680d9f90a221945126d /addons/project_long_term/test/task_process.yml
parente46d052ec0a607d2d8209a59197cdbf62d4a69ce (diff)
[IMP] added task_process.yml for task sheduling in project_long_term module
bzr revid: tpa@tinyerp.com-20111213052012-6eo11iszu07yo0mt
Diffstat (limited to 'addons/project_long_term/test/task_process.yml')
-rw-r--r--addons/project_long_term/test/task_process.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/project_long_term/test/task_process.yml b/addons/project_long_term/test/task_process.yml
new file mode 100644
index 00000000000..f31d9689567
--- /dev/null
+++ b/addons/project_long_term/test/task_process.yml
@@ -0,0 +1,20 @@
+-
+ 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 and shedule the tasks.
+-
+ !python {model: project.compute.tasks}: |
+ self.compute_date(cr, uid, [ref("project_compute_tasks0")])
+-
+ 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