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

The moderator role was not included in the tests for create_stream_policy
and invite_to_stream_policy. The tests are do_set_realm_property_test
in test_events.py and do_test_realm_update_api in test_realm.py.
This should have been added for create_stream_policy in 5b32dcd and
in 5b32dcd for invite_to_stream_policy, but was missed by mistake.
This commit is contained in:
sahil839 2021-04-04 20:50:27 +05:30 committed by Tim Abbott
parent c6e553427a
commit d9fc424e12
2 changed files with 4 additions and 2 deletions

View File

@ -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],

View File

@ -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,