From d60f6c9ad97b6cd8a6cb48637dea33045a949f49 Mon Sep 17 00:00:00 2001 From: Mohit Gupta Date: Sat, 25 May 2019 20:37:35 +0530 Subject: [PATCH] test_messages: Fix buggy test, bot tests must use /api/v1 endpoint. --- zerver/tests/test_messages.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zerver/tests/test_messages.py b/zerver/tests/test_messages.py index e8645307eb..947d7e5dfa 100644 --- a/zerver/tests/test_messages.py +++ b/zerver/tests/test_messages.py @@ -1444,11 +1444,11 @@ class MessagePOSTTest(ZulipTestCase): # Cross realm bots should be allowed. notification_bot = get_system_bot("notification-bot@zulip.com") result = self.api_post(notification_bot.email, - "/json/messages", {"type": "stream", - "to": stream_name, - "client": "test suite", - "content": "Test message", - "topic": "Test topic"}) + "/api/v1/messages", {"type": "stream", + "to": stream_name, + "client": "test suite", + "content": "Test message", + "topic": "Test topic"}) self.assert_json_success(result) def test_message_fail_to_announce(self) -> None: