actions: Remove realm argument to internal_send_stream_message.

The argument is redundant.
This commit is contained in:
Mateusz Mandera
2021-02-18 20:14:05 +01:00
committed by Tim Abbott
parent 09fc79f911
commit 51d7f24d20
6 changed files with 6 additions and 21 deletions

View File

@@ -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,