Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 8, 2013
1 parent afcca51 commit cace246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ def test_run_tools__no_changes(self):

@patch('lintreview.processor.tools')
def test_run_tools(self, tool_stub):
stub = Mock()
subject = Processor(None, 1, '123abc', './tests')
subject._changes = Mock()
subject.run_tools(None)
subject.run_tools(stub)
assert tool_stub.run.called, 'Should have ran'
assert subject._changes.get_files.called, 'Should have been called'
assert stub.ignore_patterns.called

def test_publish(self):
subject = Processor(None, 1, '123abc', './tests')
Expand Down

0 comments on commit cace246

Please sign in to comment.