def test_publish(self): subject = Processor(None, 1, '123abc', './tests') subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue(subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue(subject._review.publish.called, 'Review should be published.')
def test_publish(self): subject = Processor(None, 1, '123abc', './tests') subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue( subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue( subject._review.publish.called, 'Review should be published.')
def test_publish(self): subject = Processor(None, 1, '123abc', './tests', {'SUMMARY_THRESHOLD': 50}) subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue(subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue(subject._review.publish.called, 'Review should be published.') subject._review.publish.assert_called_with(subject._problems, '123abc', 50)
def test_publish(self): subject = Processor(None, 1, '123abc', './tests', {'SUMMARY_THRESHOLD': 50}) subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue( subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue( subject._review.publish.called, 'Review should be published.') subject._review.publish.assert_called_with( subject._problems, '123abc', 50)
def test_publish(self): gh = self.get_mock_client(load_fixture('commits.json')) subject = Processor(gh, 1, '123abc', './tests', {'SUMMARY_THRESHOLD': 50}) subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue(subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue(subject._review.publish.called, 'Review should be published.') subject._review.publish.assert_called_with(subject._problems, '123abc', 50)
def test_publish(self): gh = self.get_mock_client(load_fixture('commits.json')) subject = Processor(gh, 1, '123abc', './tests', {'SUMMARY_THRESHOLD': 50}) subject._problems = Mock() subject._review = Mock() subject.publish() self.assertTrue( subject._problems.limit_to_changes.called, 'Problems should be filtered.') self.assertTrue( subject._review.publish.called, 'Review should be published.') subject._review.publish.assert_called_with( subject._problems, '123abc', 50)