Skip to content

Commit

Permalink
actually fix mocking of insta to fix tests in py 3.3 & 3.4. i hope
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Jan 19, 2017
1 parent d63c514 commit bc907f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ def test_xmpp(self, mock_bot, mock_yamlload):
@patch(builtin_module + '.open', mock_open())
@patch('ntfy.config.yaml.safe_load')
def test_instapush(self, mock_yamlload):
def nt(event_name=None,trackers=None):
return { 'status': 200 }

modules['instapush'] = MagicMock()
modules['instapush'].App.notify = nt
modules['instapush'].App().notify.return_value = { 'status': 200 }

mock_yamlload.return_value = {
'backends': ['insta'],
Expand Down

0 comments on commit bc907f3

Please sign in to comment.