diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-11-14 14:53:54 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-02-24 16:28:51 +0100 |
| commit | d4e9640e3428219c37115a320b4ec1e9cba2c169 (patch) | |
| tree | 9757762bce45b480b4b4f0496e38031631fef4da /addons/project/tests | |
| parent | 3b6a7a9c42578980266ce7c1fd9bb3f665952631 (diff) | |
[REF] mail: _track update.
_track is now a method that returns the subtype to trigger in a given
tracking context. A tracking will now lead to only one subtype
being trigerred, instead of having multiple possible subtypes.
Now, one tracking leads to one message with one subtype, or without subtype
if there is none matching. This simplifies the model for future evolution of
chatter and mail.
[IMP] project, project_issue: cleaned task and issue subtypes, now having
opened for created / assigned.
Diffstat (limited to 'addons/project/tests')
| -rw-r--r-- | addons/project/tests/test_project_flow.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/project/tests/test_project_flow.py b/addons/project/tests/test_project_flow.py index 72aabcf189b..a1a457b03ff 100644 --- a/addons/project/tests/test_project_flow.py +++ b/addons/project/tests/test_project_flow.py @@ -146,11 +146,9 @@ class TestProjectFlow(TestProjectBase): self.assertEqual(res[0], 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), 3, + self.assertEqual(len(task.message_ids), 2, 'project: message_process: newly created task should have 2 messages: creation and email') - 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', + self.assertEqual(task.message_ids[1].subtype_id.name, 'Task Opened', '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)') |
