예제 #1
0
    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.')
예제 #2
0
    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.')
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
    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)