mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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.
This commit is contained in:
@@ -77,7 +77,7 @@ class MessagePOSTTest(ZulipTestCase):
|
|||||||
with self.assertRaisesRegex(JsonableError, error_msg):
|
with self.assertRaisesRegex(JsonableError, error_msg):
|
||||||
self.send_stream_message(user, stream_name)
|
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
|
Sending a message to a stream to which you are subscribed is
|
||||||
successful.
|
successful.
|
||||||
@@ -90,7 +90,7 @@ class MessagePOSTTest(ZulipTestCase):
|
|||||||
"topic": "Test topic"})
|
"topic": "Test topic"})
|
||||||
self.assert_json_success(result)
|
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
|
Same as above, but for the API view
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user