test_messages: Fix buggy test, bot tests must use /api/v1 endpoint.

This commit is contained in:
Mohit Gupta 2019-05-25 20:37:35 +05:30 committed by Tim Abbott
parent 7fedcbd840
commit d60f6c9ad9
1 changed files with 5 additions and 5 deletions

View File

@ -1444,7 +1444,7 @@ 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",
"/api/v1/messages", {"type": "stream",
"to": stream_name,
"client": "test suite",
"content": "Test message",