mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
groups: Move constants inside NamedUserGroup.
This commit is contained in:
@@ -75,6 +75,7 @@ from zerver.lib.types import LinkifierDict, RealmPlaygroundDict
|
||||
from zerver.lib.utils import assert_is_not_none
|
||||
from zerver.models import (
|
||||
Message,
|
||||
NamedUserGroup,
|
||||
Realm,
|
||||
RealmAuditLog,
|
||||
RealmPlayground,
|
||||
@@ -1085,10 +1086,10 @@ class TestRealmAuditLog(ZulipTestCase):
|
||||
realm = do_create_realm(string_id="test", name="foo")
|
||||
|
||||
# The expected number of system user group is the total number of roles
|
||||
# from UserGroup.SYSTEM_USER_GROUP_ROLE_MAP in addition to
|
||||
# from NamedUserGroup.SYSTEM_USER_GROUP_ROLE_MAP in addition to
|
||||
# full_members_system_group, everyone_on_internet_system_group and
|
||||
# nobody_system_group.
|
||||
expected_system_user_group_count = len(UserGroup.SYSTEM_USER_GROUP_ROLE_MAP) + 3
|
||||
expected_system_user_group_count = len(NamedUserGroup.SYSTEM_USER_GROUP_ROLE_MAP) + 3
|
||||
|
||||
system_user_group_ids = sorted(
|
||||
UserGroup.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user