示例#1
0
    def test_error(self):
        execution = MineAndDetectExecution(self.detector, self.version,
                                           self.findings_path,
                                           AllFindings(self.detector))
        run = Run([execution])
        execution.result = Result.error

        assert run.is_error()
示例#2
0
    def test_error(self, result_mock):
        execution = MineAndDetectExecution(self.detector, self.version, self.findings_path, FindingsFilter())
        result_mock.return_value = Result.error
        run = Run([execution])

        assert run.is_error()