Skip to content

Commit

Permalink
Fix test mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Kileak committed Apr 2, 2019
1 parent f0c251b commit a7352be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/slackwrapper_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def post_message(self, channel_id, text, timestamp="", parse="full"):
channel_id can also be a user_id for private messages.
Add timestamp for replying to a specific message.
"""
self.push_message(channel_id, text)
self.push_message(channel_id, str(text))

def post_message_with_react(self, channel_id, text, reaction, parse="full"):
"""Post a message in a given channel and add the specified reaction to it."""
Expand Down Expand Up @@ -120,3 +120,8 @@ def archive_private_channel(self, channel_id):
"""Archive a private channel"""
# TODO: The git handler must be mocked before testing archive command to avoid uploading test cases
pass

def set_topic(self, channel, topic, is_private=False):
"""Set the topic of a given channel."""

return None

0 comments on commit a7352be

Please sign in to comment.