Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
altnight committed Aug 20, 2018
1 parent 8c3f557 commit 375d30b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_redmine.py
Expand Up @@ -96,7 +96,9 @@ def test_no_channel_permissions_response(db, slack_message, redmine_user, redmin
def test_successful_response(db, slack_message, redmine_user, redmine_project):
with patch('haro.plugins.redmine.Session', lambda: db.session) as session:

client, web_api, chat, post_message = Mock(), Mock(), Mock(), Mock()
client, web_api, chat, post_message, res = Mock(), Mock(), Mock(), Mock(), Mock()
res.body = {'ts': 123}
post_message.return_value = res
chat.post_message = post_message
web_api.chat = chat
client.webapi = web_api
Expand Down

0 comments on commit 375d30b

Please sign in to comment.