test_subs: Add tests for unsubscribing multiple users from stream.

This commit adds tests for unsusbcribing multiple users from a
stream and fixes the missing coverage issue introduced in 2187c84.
This commit is contained in:
sahil839
2020-06-02 19:15:45 +05:30
committed by Tim Abbott
parent c4d3c03ad4
commit 0b432e26b6
2 changed files with 33 additions and 4 deletions

View File

@@ -264,7 +264,7 @@ def remove_subscriptions_backend(
removing_someone_else = principals[0] != user_profile.id
else:
removing_someone_else = principals[0] != user_profile.email
else: # nocoverage # TODO: Fix me.
else:
removing_someone_else = True
if removing_someone_else and not user_profile.is_realm_admin: