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.

test_typing: Replace 'private' with 'direct'.

Prakhar Pratyush39ec5b9f66c5
diff --git a/zerver/tests/test_typing.py b/zerver/tests/test_typing.py
index 5f8fcdb5740..3defc455b7c 100644
--- a/zerver/tests/test_typing.py
+++ b/zerver/tests/test_typing.py
@@ -16,7 +16,7 @@ class TypingValidateOperatorTest(ZulipTestCase):
result = self.api_post(sender, "/api/v1/typing", params)
self.assert_json_error(result, "Missing 'op' argument")
- def test_invalid_parameter_pm(self) -> None:
+ def test_invalid_parameter_direct_message(self) -> None:
"""
Sending typing notification with invalid value for op parameter fails
"""
@@ -50,9 +50,9 @@ class TypingMessagetypeTest(ZulipTestCase):
class TypingValidateToArgumentsTest(ZulipTestCase):
- def test_empty_to_array_pms(self) -> None:
+ def test_empty_to_array_direct_messages(self) -> None:
"""
- Sending pms typing notification without recipient fails
+ Sending dms typing notification without recipient fails
"""
sender = self.example_user("hamlet")
result = self.api_post(sender, "/api/v1/typing", {"op": "start", "to": "[]"})
@@ -131,7 +131,7 @@ class TypingValidateToArgumentsTest(ZulipTestCase):
self.assert_json_error(result, "Invalid stream ID")
-class TypingHappyPathTestPMs(ZulipTestCase):
+class TypingHappyPathTestDirectMessages(ZulipTestCase):
def test_valid_type_and_op_parameters(self) -> None:
operator_type = ["start", "stop"]
sender = self.example_user("hamlet")