minor: Inline get_unread_message_ids_per_recipient().

This method was only used in one test.
This commit is contained in:
Steve Howell
2017-11-10 06:14:13 -08:00
committed by Tim Abbott
parent e062b244b4
commit c799ec0ca6
2 changed files with 5 additions and 8 deletions

View File

@@ -655,12 +655,6 @@ def get_muted_stream_ids(user_profile):
for row in rows]
return muted_stream_ids
def get_unread_message_ids_per_recipient(user_profile):
# type: (UserProfile) -> UnreadMessagesResult
raw_unread_data = get_raw_unread_data(user_profile)
aggregated_data = aggregate_unread_data(raw_unread_data)
return aggregated_data
def get_raw_unread_data(user_profile):
# type: (UserProfile) -> Dict[str, Any]

View File

@@ -74,7 +74,8 @@ from zerver.lib.events import (
fetch_initial_state_data,
)
from zerver.lib.message import (
get_unread_message_ids_per_recipient,
aggregate_unread_data,
get_raw_unread_data,
render_markdown,
UnreadMessagesResult,
)
@@ -1859,7 +1860,9 @@ class FetchInitialStateDataTest(ZulipTestCase):
def get_unread_data():
# type: () -> UnreadMessagesResult
return get_unread_message_ids_per_recipient(user_profile)
raw_unread_data = get_raw_unread_data(user_profile)
aggregated_data = aggregate_unread_data(raw_unread_data)
return aggregated_data
result = get_unread_data()