From 25f32d461e09661873fa09fb9049f479b4b857b7 Mon Sep 17 00:00:00 2001 From: sahil839 Date: Fri, 2 Oct 2020 16:37:40 +0530 Subject: [PATCH] tests: Add tests for all the values of wildcard_mention_policy. --- zerver/tests/test_events.py | 2 +- zerver/tests/test_realm.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py index 4664f1deaf..07b14b4c10 100644 --- a/zerver/tests/test_events.py +++ b/zerver/tests/test_events.py @@ -1730,7 +1730,7 @@ class RealmPropertyActionTest(BaseAction): invite_to_stream_policy=[3, 2, 1], private_message_policy=[2, 1], 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], bot_creation_policy=[Realm.BOT_CREATION_EVERYONE], video_chat_provider=[ diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py index de00aa1d93..f691b8e33d 100644 --- a/zerver/tests/test_realm.py +++ b/zerver/tests/test_realm.py @@ -733,8 +733,11 @@ class RealmAPITest(ZulipTestCase): Realm.POLICY_MEMBERS_ONLY, Realm.POLICY_FULL_MEMBERS_ONLY], wildcard_mention_policy=[Realm.WILDCARD_MENTION_POLICY_EVERYONE, + Realm.WILDCARD_MENTION_POLICY_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], email_address_visibility=[Realm.EMAIL_ADDRESS_VISIBILITY_EVERYONE, Realm.EMAIL_ADDRESS_VISIBILITY_ADMINS,