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: Make new channel name consistent in notification bot test.

Lauryn Menard1030f418841e
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index 4d564ec5f34..7414ae3ed4d 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -5172,9 +5172,12 @@ class SubscriptionAPITest(ZulipTestCase):
"```` quote\n*No description.*\n````",
)
+ # When send_new_subscription_messages is false, confirm that the
+ # response doesn't include new_subscription_messages_sent boolean
+ # field.
response = self.subscribe_via_post(
desdemona,
- ["Test stream 3"],
+ ["test E"],
dict(
principals=orjson.dumps(user_ids).decode(),
send_new_subscription_messages=orjson.dumps(False).decode(),