mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user