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-subs: Fix comment in test_notification_bot_dm_on_subscription.

Lauryn Menard14581de0de5c
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index 7a802cf621b..4d564ec5f34 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -5119,9 +5119,10 @@ class SubscriptionAPITest(ZulipTestCase):
)
self.assertEqual(announcement_channel_message.count(), 0)
- # When subscribing to an already existing channel, if the number of new
- # subscriptions exceeds the limit, no DMs are sent, but an announcement
- # message and new channel message should be sent.
+ # The max number of new subscriptions limit only impacts
+ # DM notifications, so for a newly created channel, we
+ # still expect an announcement message and new channel
+ # message (and no DM notifications).
now = timezone_now()
with self.settings(MAX_BULK_NEW_SUBSCRIPTION_MESSAGES=5):
response = self.subscribe_via_post(