Skip to content

Commit

Permalink
Fixed test on GitHubUtil export pythonpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaume Florez committed Nov 9, 2016
1 parent d300a96 commit fedbb04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/format_github_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,13 +878,13 @@
'and an exception is thrown'):
with patch("hookshub.hooks.github.Popen") as popen:
popen.start()
popen_mock = Mock()
popen_mock.side_effect = Exception('Mocked')
popen_mock.returncode = -1
popen.return_value = popen_mock
popen.side_effect = Exception('Mocked exception')
popen.return_value = 0
log = util.export_pythonpath('Path')
expect(len(log) > 0).to(equal(True))
expect(log).to(equal('Failed to export sitecustomize path'))
expect(log).to(equal(
'Failed to export sitecustomize path'
))
popen.stop()

# docs_build
Expand Down

0 comments on commit fedbb04

Please sign in to comment.