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: Clean up typos.

Zixuan James Li4adb9dd2bc0f
diff --git a/zerver/tests/test_user_groups.py b/zerver/tests/test_user_groups.py
index 14097613291..f2cfcdef8ff 100644
--- a/zerver/tests/test_user_groups.py
+++ b/zerver/tests/test_user_groups.py
@@ -391,7 +391,7 @@ class UserGroupAPITestCase(UserGroupTestCase):
members = get_direct_memberships_of_users(user_group, [hamlet, othello])
self.assert_length(members, 2)
- # Test user adding itself,bot and deactivated user to user group.
+ # Test user adding itself, bot and deactivated user to user group.
desdemona = self.example_user("desdemona")
self.login_user(desdemona)
@@ -534,8 +534,6 @@ class UserGroupAPITestCase(UserGroupTestCase):
else:
self.assert_json_error(result, error_msg)
- realm = hamlet.realm
-
# Check only admins are allowed to create/delete user group. Admins are allowed even if
# they are not a member of the group.
do_set_realm_property(