Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_user_groups: Remove incorrect comment.

Sahil Batra30e0c7291921
diff --git a/zerver/tests/test_user_groups.py b/zerver/tests/test_user_groups.py
index cec5726914d..951b68b93ab 100644
--- a/zerver/tests/test_user_groups.py
+++ b/zerver/tests/test_user_groups.py
@@ -2762,7 +2762,6 @@ class UserGroupAPITestCase(UserGroupTestCase):
test_group = check_add_user_group(realm, "test", [hamlet], acting_user=hamlet)
self.login("cordelia")
- # Non-admin and non-moderators who are not a member of group cannot add or remove subgroups.
params = {"add": orjson.dumps([leadership_group.id]).decode()}
result = self.client_post(f"/json/user_groups/{support_group.id}/subgroups", info=params)
self.assert_json_error(result, "Insufficient permission")