mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
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 in5b32dcdand in5b32dcdfor invite_to_stream_policy, but was missed by mistake.
This commit is contained in:
parent
c6e553427a
commit
d9fc424e12
@ -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],
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user