Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_event_queue: Set the notification settings explicitly.

Prakhar Pratyushbdbd405328fb
diff --git a/zerver/tests/test_event_queue.py b/zerver/tests/test_event_queue.py
index 4633a6a7ff6..8359bcf4a84 100644
--- a/zerver/tests/test_event_queue.py
+++ b/zerver/tests/test_event_queue.py
@@ -827,7 +827,13 @@ class MissedMessageHookTest(ZulipTestCase):
)
def test_followed_topic_email_and_push_notify(self) -> None:
- # By default, messages sent in followed topics should send notifications.
+ # messages sent in followed topics should send both email and push notifications.
+ do_change_user_setting(
+ self.user_profile, "enable_followed_topic_email_notifications", True, acting_user=None
+ )
+ do_change_user_setting(
+ self.user_profile, "enable_followed_topic_push_notifications", True, acting_user=None
+ )
do_set_user_topic_visibility_policy(
self.user_profile,
get_stream("Denmark", self.user_profile.realm),