summaryrefslogtreecommitdiff
path: root/addons/project_long_term/test/task_process.yml
diff options
context:
space:
mode:
authorStephane Wirtel <stw@openerp.com>2011-12-14 13:42:57 +0100
committerStephane Wirtel <stw@openerp.com>2011-12-14 13:42:57 +0100
commitdf9bb00eaae636e76d119f79497351ca2e9067be (patch)
treeb6cee2904fcc54ee922dd715819c6299542e061d /addons/project_long_term/test/task_process.yml
parentc56e16ec6523ff414c479c61d4fa0094557b1f7d (diff)
parente36dc8c5e3ca3da1474747bae5ec87fea19b23b8 (diff)
[MERGE] Upstream
bzr revid: stw@openerp.com-20111214124257-06ovpmn9n9d96ci4
Diffstat (limited to 'addons/project_long_term/test/task_process.yml')
-rw-r--r--addons/project_long_term/test/task_process.yml19
1 files changed, 19 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..64ecef73476
--- /dev/null
+++ b/addons/project_long_term/test/task_process.yml
@@ -0,0 +1,19 @@
+-
+ 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
+ assert task.user_id and task.date_start and task.date_end, "Project tasks not scheduled"