mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	org settings: Handle NEW_USER_BOT not being set.
If NEW_USER_BOT is not configured in organization, then disable setting for selecting stream for new user notification.
This commit is contained in:
		@@ -216,6 +216,10 @@ class RealmTest(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        new_signup_notifications_stream_id = 4
 | 
			
		||||
        req = dict(signup_notifications_stream_id = ujson.dumps(new_signup_notifications_stream_id))
 | 
			
		||||
        with self.settings(NEW_USER_BOT=None):
 | 
			
		||||
            result = self.client_patch("/json/realm", req)
 | 
			
		||||
            self.assert_json_error(result, 'NEW_USER_BOT must configured first.')
 | 
			
		||||
 | 
			
		||||
        result = self.client_patch('/json/realm', req)
 | 
			
		||||
        self.assert_json_success(result)
 | 
			
		||||
        realm = get_realm('zulip')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user