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()
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()