mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	actions: Remove realm argument to internal_send_stream_message.
The argument is redundant.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							09fc79f911
						
					
				
				
					commit
					51d7f24d20
				
			@@ -220,7 +220,7 @@ class MessagePOSTTest(ZulipTestCase):
 | 
			
		||||
        # Cross realm bots should be allowed
 | 
			
		||||
        notification_bot = get_system_bot("notification-bot@zulip.com")
 | 
			
		||||
        internal_send_stream_message(
 | 
			
		||||
            stream.realm, notification_bot, stream, "Test topic", "Test message by notification bot"
 | 
			
		||||
            notification_bot, stream, "Test topic", "Test message by notification bot"
 | 
			
		||||
        )
 | 
			
		||||
        self.assertEqual(self.get_last_message().content, "Test message by notification bot")
 | 
			
		||||
 | 
			
		||||
@@ -305,7 +305,7 @@ class MessagePOSTTest(ZulipTestCase):
 | 
			
		||||
        # Cross realm bots should be allowed
 | 
			
		||||
        notification_bot = get_system_bot("notification-bot@zulip.com")
 | 
			
		||||
        internal_send_stream_message(
 | 
			
		||||
            stream.realm, notification_bot, stream, "Test topic", "Test message by notification bot"
 | 
			
		||||
            notification_bot, stream, "Test topic", "Test message by notification bot"
 | 
			
		||||
        )
 | 
			
		||||
        self.assertEqual(self.get_last_message().content, "Test message by notification bot")
 | 
			
		||||
 | 
			
		||||
@@ -2012,7 +2012,6 @@ class InternalPrepTest(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        with self.assertLogs(level="ERROR") as m:
 | 
			
		||||
            internal_send_stream_message(
 | 
			
		||||
                realm=realm,
 | 
			
		||||
                sender=cordelia,
 | 
			
		||||
                topic="whatever",
 | 
			
		||||
                content=bad_content,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user