tests: Add tests for all the values of wildcard_mention_policy.

This commit is contained in:
sahil839 2020-10-02 16:37:40 +05:30 committed by Tim Abbott
parent ec8fcf3a04
commit 25f32d461e
2 changed files with 5 additions and 2 deletions

View File

@ -1730,7 +1730,7 @@ class RealmPropertyActionTest(BaseAction):
invite_to_stream_policy=[3, 2, 1], invite_to_stream_policy=[3, 2, 1],
private_message_policy=[2, 1], private_message_policy=[2, 1],
user_group_edit_policy=[1, 2], user_group_edit_policy=[1, 2],
wildcard_mention_policy=[3, 2, 1], wildcard_mention_policy=[6, 5, 4, 3, 2, 1],
email_address_visibility=[Realm.EMAIL_ADDRESS_VISIBILITY_ADMINS], email_address_visibility=[Realm.EMAIL_ADDRESS_VISIBILITY_ADMINS],
bot_creation_policy=[Realm.BOT_CREATION_EVERYONE], bot_creation_policy=[Realm.BOT_CREATION_EVERYONE],
video_chat_provider=[ video_chat_provider=[

View File

@ -733,8 +733,11 @@ class RealmAPITest(ZulipTestCase):
Realm.POLICY_MEMBERS_ONLY, Realm.POLICY_MEMBERS_ONLY,
Realm.POLICY_FULL_MEMBERS_ONLY], Realm.POLICY_FULL_MEMBERS_ONLY],
wildcard_mention_policy=[Realm.WILDCARD_MENTION_POLICY_EVERYONE, wildcard_mention_policy=[Realm.WILDCARD_MENTION_POLICY_EVERYONE,
Realm.WILDCARD_MENTION_POLICY_MEMBERS,
Realm.WILDCARD_MENTION_POLICY_FULL_MEMBERS, Realm.WILDCARD_MENTION_POLICY_FULL_MEMBERS,
Realm.WILDCARD_MENTION_POLICY_ADMINS], Realm.WILDCARD_MENTION_POLICY_STREAM_ADMINS,
Realm.WILDCARD_MENTION_POLICY_ADMINS,
Realm.WILDCARD_MENTION_POLICY_NOBODY],
bot_creation_policy=[1, 2], bot_creation_policy=[1, 2],
email_address_visibility=[Realm.EMAIL_ADDRESS_VISIBILITY_EVERYONE, email_address_visibility=[Realm.EMAIL_ADDRESS_VISIBILITY_EVERYONE,
Realm.EMAIL_ADDRESS_VISIBILITY_ADMINS, Realm.EMAIL_ADDRESS_VISIBILITY_ADMINS,