mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
lint: fix some whitespace issues in new reactions code.
This commit is contained in:
@@ -233,8 +233,8 @@ class ReactionDict(object):
|
||||
# type: (Dict[str, Any]) -> Dict[str, Any]
|
||||
return {'emoji_name': row.get('emoji_name'),
|
||||
'user': {'email': row.get('user_profile__email'),
|
||||
'id': row.get('user_profile__id'),
|
||||
'full_name': row.get('user_profile__full_name')}}
|
||||
'id': row.get('user_profile__id'),
|
||||
'full_name': row.get('user_profile__full_name')}}
|
||||
|
||||
|
||||
def re_render_content_for_management_command(message):
|
||||
|
||||
@@ -612,8 +612,8 @@ class MessageDictTest(ZulipTestCase):
|
||||
message=message, user_profile=sender,
|
||||
emoji_name='simple_smile')
|
||||
row = Message.get_raw_db_rows([message.id])[0]
|
||||
msg_dict = MessageDict.build_dict_from_raw_db_row(row,
|
||||
apply_markdown=True)
|
||||
msg_dict = MessageDict.build_dict_from_raw_db_row(
|
||||
row, apply_markdown=True)
|
||||
self.assertEqual(msg_dict['reactions'][0]['emoji_name'],
|
||||
reaction.emoji_name)
|
||||
self.assertEqual(msg_dict['reactions'][0]['user']['id'],
|
||||
|
||||
Reference in New Issue
Block a user