mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
bots: Rename is_cross_realm_bot API field to is_system_bot.
Cross realm bots will soon stop being a thing. This param is responsible for displaying "System Bot" in the user info popover - so this rename is the right way to handle the situation. We will likely want to rename the `cross_realm_bots` section as well, but that is a more involved API migration.
This commit is contained in:
committed by
Tim Abbott
parent
1652e5c031
commit
119f1da04a
@@ -1120,7 +1120,7 @@ class TestGetRawUserDataSystemBotRealm(ZulipTestCase):
|
||||
for bot_email in settings.CROSS_REALM_BOT_EMAILS:
|
||||
bot_profile = get_system_bot(bot_email)
|
||||
self.assertTrue(bot_profile.id in result)
|
||||
self.assertTrue(result[bot_profile.id]["is_cross_realm_bot"])
|
||||
self.assertTrue(result[bot_profile.id]["is_system_bot"])
|
||||
|
||||
|
||||
class TestUserPresenceUpdatesDisabled(ZulipTestCase):
|
||||
|
||||
Reference in New Issue
Block a user