def _process_result(self, status): if status == TestStatus.ERROR: session.increment_errors() return if status == TestStatus.FAILED: session.increment_failures() return if status == TestStatus.PASSED: session.increment_successes()
def _process_result(status): """Increment the number of session errors/failures/successes depending on the test status. Args: status [string]: the status of the test: passed, failed or error. """ if status == TestStatus.ERROR: session.increment_errors() return if status == TestStatus.FAILED: session.increment_failures() return if status == TestStatus.PASSED: session.increment_successes()