lint: fix some whitespace issues in new reactions code.

This commit is contained in:
Tim Abbott
2016-12-14 20:37:13 -08:00
parent 0329b67048
commit 0b33be50f3
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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'],