mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	test_subs: Add send_new_subscription_messages parameter false test case.
For the sake of completion, we add a test case ensuring that the response does not contain `new_subscription_messages_sent` if the parameter `send_new_subscription_messages` is `false`, as mentioned in the API documentation.
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user