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

View File

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