summaryrefslogtreecommitdiff
path: root/addons/project/tests
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-07-10 15:29:54 +0200
committerThibault Delavallée <tde@openerp.com>2013-07-10 15:29:54 +0200
commit98ec74dd62cde93c91d3a05194845d4e8ea17e9c (patch)
tree5302e2adc5961e2118437cc62dd1f600e82a9c1a /addons/project/tests
parent4b0baa3615aee3e528ccef0b60142ba7acb7976f (diff)
[IMP] project_issue: added date_last_stage_update in reports; removed month_last_stgae_update in project_task, only date is sufficient because reports already handle this correctly. Updated coding style of tests.
bzr revid: tde@openerp.com-20130710132954-tnr75cf33nti8r1u
Diffstat (limited to 'addons/project/tests')
-rw-r--r--addons/project/tests/test_project_flow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/project/tests/test_project_flow.py b/addons/project/tests/test_project_flow.py
index a78bd6de156..a037c92d2ae 100644
--- a/addons/project/tests/test_project_flow.py
+++ b/addons/project/tests/test_project_flow.py
@@ -135,9 +135,11 @@ class TestProjectFlow(TestProjectBase):
self.assertEqual(res[0].get('create_uid'), uid,
'project: message_process: task should have been created by uid as alias_user_id is False on the alias')
# Test: messages
- self.assertEqual(len(task.message_ids), 2,
+ self.assertEqual(len(task.message_ids), 3,
'project: message_process: newly created task should have 2 messages: creation and email')
- self.assertEqual(task.message_ids[1].subtype_id.name, 'Task Created',
+ self.assertEqual(task.message_ids[2].subtype_id.name, 'Task Created',
+ 'project: message_process: first message of new task should have Task Created subtype')
+ self.assertEqual(task.message_ids[1].subtype_id.name, 'Task Assigned',
'project: message_process: first message of new task should have Task Created subtype')
self.assertEqual(task.message_ids[0].author_id.id, self.email_partner_id,
'project: message_process: second message should be the one from Agrolait (partner failed)')