From 1ad0ad8ece1eb8b7f71822441897831d8afa5408 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 18 May 2023 13:54:01 +0200 Subject: [PATCH] tests-scheduled-messages: Use "direct" instead of "private". --- zerver/tests/test_scheduled_messages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/tests/test_scheduled_messages.py b/zerver/tests/test_scheduled_messages.py index 3a5fa77b91..ac15a3be99 100644 --- a/zerver/tests/test_scheduled_messages.py +++ b/zerver/tests/test_scheduled_messages.py @@ -79,7 +79,7 @@ class ScheduledMessageTest(ZulipTestCase): timestamp_to_datetime(scheduled_delivery_timestamp), ) - # Scheduling a private message is successful. + # Scheduling a direct message is successful. othello = self.example_user("othello") result = self.do_schedule_message( "direct", [othello.id], content + " 3", scheduled_delivery_timestamp @@ -145,7 +145,7 @@ class ScheduledMessageTest(ZulipTestCase): self.assertEqual(delivered_message.topic_name(), scheduled_message.topic_name()) self.assertEqual(delivered_message.date_sent, more_than_scheduled_delivery_datetime) - def test_successful_deliver_private_scheduled_message(self) -> None: + def test_successful_deliver_direct_scheduled_message(self) -> None: logger = mock.Mock() # No scheduled message self.assertFalse(try_deliver_one_scheduled_message(logger)) @@ -209,7 +209,7 @@ class ScheduledMessageTest(ZulipTestCase): ) self.assert_json_error(updated_response, "Scheduled message was already sent") - def test_successful_deliver_private_scheduled_message_to_self(self) -> None: + def test_successful_deliver_direct_scheduled_message_to_self(self) -> None: logger = mock.Mock() # No scheduled message self.assertFalse(try_deliver_one_scheduled_message(logger))