forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
users: Refactor get_members_backend endpoint to use get_raw_user_data.
Modify the get_raw_user_data method for use by the /users API endpoint and then modify the /users endpoint to use it.
- Loading branch information
Showing
6 changed files
with
80 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,7 +185,7 @@ def test_add_bot(self) -> None: | |
bots = [m for m in members if m['email'] == '[email protected]'] | ||
self.assertEqual(len(bots), 1) | ||
bot = bots[0] | ||
self.assertEqual(bot['bot_owner'], self.example_email('hamlet')) | ||
self.assertEqual(bot['bot_owner_id'], self.example_user('hamlet').id) | ||
self.assertEqual(bot['user_id'], self.get_bot_user(email).id) | ||
|
||
def test_add_bot_with_username_in_use(self) -> None: | ||
|
@@ -317,7 +317,7 @@ def test_add_bot_email_address_visibility(self) -> None: | |
bots = [m for m in members if m['email'] == '[email protected]'] | ||
self.assertEqual(len(bots), 1) | ||
bot = bots[0] | ||
self.assertEqual(bot['bot_owner'], user.email) | ||
self.assertEqual(bot['bot_owner_id'], user.id) | ||
self.assertEqual(bot['user_id'], self.get_bot_user(email).id) | ||
|
||
def test_bot_add_subscription(self) -> None: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters