Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Jan 20, 2017
1 parent c7b882e commit 6942896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PUBLIC_ROOM_TEST = {'rooms': [
PUBLIC_ROOM_TEST = {'channels': [
{'name': 'Test Room',
'_id': '123456'}
]}
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def test_send_message_payload(self, set_auth_headers_mock, set_auth_mock):

send_message = SendMessage(settings=self.settings)

self.assertEqual(send_message.build_payload(message='Test message'),
{'msg': 'Test message'})
self.assertEqual(send_message.build_payload(message='Test message', room_id="#general"),
{'roomId': '#general', 'text': 'Test message'})

@mock.patch('rocketchat.calls.base.RocketChatBase.set_auth_token')
@mock.patch('rocketchat.calls.base.RocketChatBase.set_auth_headers')
Expand Down

0 comments on commit 6942896

Please sign in to comment.