Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_subs: Add send_new_subscription_messages parameter false test case.
Kislay Verma9b7d6335c131
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.pyindex 176dcc0c2c2..7a802cf621b 100644--- a/zerver/tests/test_subs.py+++ b/zerver/tests/test_subs.py@@ -5171,6 +5171,17 @@ class SubscriptionAPITest(ZulipTestCase):"```` quote\n*No description.*\n````",)+ response = self.subscribe_via_post(+ desdemona,+ ["Test stream 3"],+ dict(+ principals=orjson.dumps(user_ids).decode(),+ send_new_subscription_messages=orjson.dumps(False).decode(),+ ),+ )+ data = self.assert_json_success(response)+ self.assertNotIn("new_subscription_messages_sent", data)+class InviteOnlyStreamTest(ZulipTestCase):def test_must_be_subbed_to_send(self) -> None: