Replace do_add_subscription() in test_helpers.

This commit is contained in:
Steve Howell 2016-10-19 15:08:03 -07:00 committed by Tim Abbott
parent 041cd6c787
commit 78b73a0c91
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ from zerver.lib import event_queue
from zerver.worker import queue_processors from zerver.worker import queue_processors
from zerver.lib.actions import ( from zerver.lib.actions import (
check_send_message, create_stream_if_needed, do_add_subscription, check_send_message, create_stream_if_needed, bulk_add_subscriptions,
get_display_recipient, get_display_recipient,
) )
@ -543,7 +543,7 @@ class ZulipTestCase(TestCase):
if stream is None: if stream is None:
stream, _ = create_stream_if_needed(realm, stream_name) stream, _ = create_stream_if_needed(realm, stream_name)
user_profile = get_user_profile_by_email(email) user_profile = get_user_profile_by_email(email)
do_add_subscription(user_profile, stream, no_log=True) bulk_add_subscriptions([stream], [user_profile])
# Subscribe to a stream by making an API request # Subscribe to a stream by making an API request
def common_subscribe_to_streams(self, email, streams, extra_post_data={}, invite_only=False): def common_subscribe_to_streams(self, email, streams, extra_post_data={}, invite_only=False):