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:
Mateusz Mandera
2021-03-07 15:51:55 +01:00
committed by Tim Abbott
parent 1652e5c031
commit 119f1da04a
8 changed files with 23 additions and 12 deletions

View File

@@ -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):