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

        assert not run.is_success()
        assert not run.is_failure()
示例#2
0
    def test_success(self):
        execution = MineAndDetectExecution(self.detector, self.version,
                                           self.findings_path,
                                           AllFindings(self.detector))
        run = Run([execution])
        execution.result = Result.success

        assert run.is_success()