From fe370debe5240ad74e11d59d466d858902030cf8 Mon Sep 17 00:00:00 2001 From: sahil839 Date: Thu, 24 Sep 2020 00:34:36 +0530 Subject: [PATCH] tests: Rename stream messages tests in test_message_send.py. This commit renames 'test_message_to_self' and 'test_api_message_to_self' tests to 'test_message_to_stream_by_name' and 'test_api_message_to_stream_by_name' to depict the actual purpose of these tests. --- zerver/tests/test_message_send.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_message_send.py b/zerver/tests/test_message_send.py index 2d5ace4820..9d4c04ead0 100644 --- a/zerver/tests/test_message_send.py +++ b/zerver/tests/test_message_send.py @@ -77,7 +77,7 @@ class MessagePOSTTest(ZulipTestCase): with self.assertRaisesRegex(JsonableError, error_msg): self.send_stream_message(user, stream_name) - def test_message_to_self(self) -> None: + def test_message_to_stream_by_name(self) -> None: """ Sending a message to a stream to which you are subscribed is successful. @@ -90,7 +90,7 @@ class MessagePOSTTest(ZulipTestCase): "topic": "Test topic"}) self.assert_json_success(result) - def test_api_message_to_self(self) -> None: + def test_api_message_to_stream_by_name(self) -> None: """ Same as above, but for the API view """