mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +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]
|
# type: (Dict[str, Any]) -> Dict[str, Any]
|
||||||
return {'emoji_name': row.get('emoji_name'),
|
return {'emoji_name': row.get('emoji_name'),
|
||||||
'user': {'email': row.get('user_profile__email'),
|
'user': {'email': row.get('user_profile__email'),
|
||||||
'id': row.get('user_profile__id'),
|
'id': row.get('user_profile__id'),
|
||||||
'full_name': row.get('user_profile__full_name')}}
|
'full_name': row.get('user_profile__full_name')}}
|
||||||
|
|
||||||
|
|
||||||
def re_render_content_for_management_command(message):
|
def re_render_content_for_management_command(message):
|
||||||
|
|||||||
@@ -612,8 +612,8 @@ class MessageDictTest(ZulipTestCase):
|
|||||||
message=message, user_profile=sender,
|
message=message, user_profile=sender,
|
||||||
emoji_name='simple_smile')
|
emoji_name='simple_smile')
|
||||||
row = Message.get_raw_db_rows([message.id])[0]
|
row = Message.get_raw_db_rows([message.id])[0]
|
||||||
msg_dict = MessageDict.build_dict_from_raw_db_row(row,
|
msg_dict = MessageDict.build_dict_from_raw_db_row(
|
||||||
apply_markdown=True)
|
row, apply_markdown=True)
|
||||||
self.assertEqual(msg_dict['reactions'][0]['emoji_name'],
|
self.assertEqual(msg_dict['reactions'][0]['emoji_name'],
|
||||||
reaction.emoji_name)
|
reaction.emoji_name)
|
||||||
self.assertEqual(msg_dict['reactions'][0]['user']['id'],
|
self.assertEqual(msg_dict['reactions'][0]['user']['id'],
|
||||||
|
|||||||
Reference in New Issue
Block a user