zerver/lib/notifications: Add stream email notifications.

This modifies the logic for formatting outgoing missed-message emails
to support the upcoming stream email notifications feature (providing
a new format for the subject, etc.).
This commit is contained in:
Sarah
2017-11-20 21:11:13 -08:00
committed by Tim Abbott
parent 47df8c0c6e
commit 73f5be65e8
4 changed files with 129 additions and 0 deletions

View File

@@ -163,6 +163,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
private_message=False,
mentioned=True,
stream_push_notify=False,
stream_email_notify=False,
stream_name='Scotland',
always_push_notify=False,
idle=True,
@@ -314,6 +315,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
private_message=False,
mentioned=True,
stream_push_notify=False,
stream_email_notify=False,
stream_name='Scotland',
always_push_notify=True,
idle=False,
@@ -351,6 +353,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
private_message=False,
mentioned=False,
stream_push_notify=False,
stream_email_notify=False,
stream_name='Scotland',
always_push_notify=True,
idle=False,
@@ -388,6 +391,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
private_message=False,
mentioned=True,
stream_push_notify=False,
stream_email_notify=False,
stream_name='Scotland',
always_push_notify=False,
idle=True,
@@ -422,6 +426,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
private_message=False,
mentioned=True,
stream_push_notify=False,
stream_email_notify=False,
stream_name='Scotland',
always_push_notify=False,
idle=False,