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.

tests: Include moderator role in events and realm update tests.

sahil839d9fc424e120d
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index b513db5645a..4851060c271 100644
--- a/zerver/tests/test_events.py
+++ b/zerver/tests/test_events.py
@@ -1860,8 +1860,8 @@ class RealmPropertyActionTest(BaseAction):
message_retention_days=[10, 20],
name=["Zulip", "New Name"],
waiting_period_threshold=[10, 20],
- create_stream_policy=[3, 2, 1],
- invite_to_stream_policy=[3, 2, 1],
+ create_stream_policy=[4, 3, 2, 1],
+ invite_to_stream_policy=[4, 3, 2, 1],
private_message_policy=[2, 1],
user_group_edit_policy=[1, 2],
wildcard_mention_policy=[6, 5, 4, 3, 2, 1],
diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py
index 035474c9e2d..8f6c89770db 100644
--- a/zerver/tests/test_realm.py
+++ b/zerver/tests/test_realm.py
@@ -851,6 +851,7 @@ class RealmAPITest(ZulipTestCase):
Realm.POLICY_ADMINS_ONLY,
Realm.POLICY_MEMBERS_ONLY,
Realm.POLICY_FULL_MEMBERS_ONLY,
+ Realm.POLICY_MODERATORS_ONLY,
],
user_group_edit_policy=[
Realm.USER_GROUP_EDIT_POLICY_ADMINS,
@@ -864,6 +865,7 @@ class RealmAPITest(ZulipTestCase):
Realm.POLICY_ADMINS_ONLY,
Realm.POLICY_MEMBERS_ONLY,
Realm.POLICY_FULL_MEMBERS_ONLY,
+ Realm.POLICY_MODERATORS_ONLY,
],
wildcard_mention_policy=[
Realm.WILDCARD_MENTION_POLICY_EVERYONE,