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: Remove test_change_wildcard_mention_policy from test_realm.py.

sahil839f95faaf73222
diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py
index c0476960656..453aac5ba7d 100644
--- a/zerver/tests/test_realm.py
+++ b/zerver/tests/test_realm.py
@@ -550,20 +550,6 @@ class RealmTest(ZulipTestCase):
result = self.client_patch("/json/realm", req)
self.assert_json_error(result, "Invalid private_message_policy")
- def test_change_wildcard_mention_policy(self) -> None:
- # We need an admin user.
- self.login("iago")
- req = dict(
- wildcard_mention_policy=orjson.dumps(Realm.WILDCARD_MENTION_POLICY_EVERYONE).decode()
- )
- result = self.client_patch("/json/realm", req)
- self.assert_json_success(result)
-
- invalid_value = 10
- req = dict(wildcard_mention_policy=orjson.dumps(invalid_value).decode())
- result = self.client_patch("/json/realm", req)
- self.assert_json_error(result, "Invalid wildcard_mention_policy")
-
def test_invalid_integer_attribute_values(self) -> None:
integer_values = [key for key, value in Realm.property_types.items() if value is int]