bulk_remove_subscriptions: Pass client object in.

We need the client object to pass on to do_mark_stream_as_read.
This commit is contained in:
Tim Abbott
2018-03-13 16:13:21 -07:00
parent c60f197fde
commit 6e55342e21
9 changed files with 22 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ from zerver.lib.test_helpers import (
from zerver.models import (
get_stream,
get_user,
get_client,
get_user,
get_realm,
Client,
@@ -585,8 +585,9 @@ class ZulipTestCase(TestCase):
return stream
def unsubscribe(self, user_profile: UserProfile, stream_name: str) -> None:
client = get_client("website")
stream = get_stream(stream_name, user_profile.realm)
bulk_remove_subscriptions([user_profile], [stream])
bulk_remove_subscriptions([user_profile], [stream], client)
# Subscribe to a stream by making an API request
def common_subscribe_to_streams(self, email: str, streams: Iterable[str],