Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bots: Pass realm to get_system_bot call in test_users.
Mateusz Mandera6f6be04f2e2d
diff --git a/zerver/tests/test_users.py b/zerver/tests/test_users.pyindex 6c22473d0d6..4f93faa9cec 100644--- a/zerver/tests/test_users.py+++ b/zerver/tests/test_users.py@@ -1207,9 +1207,10 @@ class UserProfileTest(ZulipTestCase):def test_get_user_by_id_in_realm_including_cross_realm(self) -> None:realm = get_realm("zulip")+ internal_realm = get_realm(settings.SYSTEM_BOT_REALM)hamlet = self.example_user("hamlet")othello = self.example_user("othello")- bot = get_system_bot(settings.WELCOME_BOT)+ bot = get_system_bot(settings.WELCOME_BOT, internal_realm.id)# Pass in the ID of a cross-realm bot and a valid realmcross_realm_bot = get_user_by_id_in_realm_including_cross_realm(bot.id, realm)