From 39ec5b9f66c567e139cccceb3219f7feb9d7943c Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Sat, 7 Oct 2023 16:12:49 +0530 Subject: [PATCH] test_typing: Replace 'private' with 'direct'. This commit replaces the keyword 'private' with 'direct'. 'pm' has been changed to 'direct message' to be more verbose. --- zerver/tests/test_typing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zerver/tests/test_typing.py b/zerver/tests/test_typing.py index 5f8fcdb574..3defc455b7 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")