def normalize_status(status: str, result: str) -> StatusType: status = helper.to_lower_case(status) result = helper.to_lower_case(result) if status in ['in_progress', 'queued']: return 'started' if result in ['cancelled', 'timed_out']: return 'errored' if result == 'failure': return 'failed' return 'passed'
def normalize_status(status : str, result : str) -> str: status = helper.to_lower_case(status) result = helper.to_lower_case(result) if status == 'running': return 'process' if result == 'aborted': return 'errored' if result == 'failed': return 'failed' return 'passed'
def normalize_status(status: str, result: str) -> StatusType: status = helper.to_lower_case(status) result = helper.to_lower_case(result) if status in ['inprogress', 'notstarted']: return 'started' if status == 'cancelling' or result == 'canceled': return 'errored' if result == 'failed': return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status == 'unknown': return 'errored' if status == 'failed': return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status == 'inprogress': return 'started' if status == 'failed': return 'failed' return 'passed'
def normalize_status(status: str, is_running: bool) -> StatusType: status = helper.to_lower_case(status) if is_running is True: return 'started' if status == 'error': return 'errored' if status == 'failure': return 'failed' return 'passed'
def normalize_status(status : str) -> StatusType: status = helper.to_lower_case(status) if status == 'inprogress': return 'started' if status == 'stopped': return 'errored' if status == 'failed': return 'failed' return 'passed'
def normalize_status(status: str) -> StatusType: status = helper.to_lower_case(status) if status in ['created', 'running', 'pending']: return 'started' if status in ['canceled', 'skipped']: return 'errored' if status == 'failed': return 'failed' return 'passed'
def normalize_status(result: str, is_building: bool) -> str: result = helper.to_lower_case(result) if is_building is True: return 'started' if result in ['unstable', 'not_build']: return 'errored' if result == 'failure': return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status in ['initiated', 'testing', 'waiting']: return 'started' if status in ['error', 'blocked', 'ignored']: return 'errored' if status in ['failed', 'infrastructure_failure']: return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status in ['created', 'started']: return 'started' if status in ['cancelled', 'errored']: return 'errored' if status == 'failed': return 'failed' return 'passed'
def normalize_status(status : str) -> str: status = helper.to_lower_case(status) if status == 'pending': return 'process' if status == 'error': return 'errored' if status == 'failure': return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status in ['queued', 'running', 'scheduled']: return 'started' if status in ['canceled', 'no_tests']: return 'errored' if status in ['failed', 'failing']: return 'failed' return 'passed'
def normalize_status(status: str) -> str: status = helper.to_lower_case(status) if status in ['queued', 'running']: return 'process' if status == 'canceled': return 'errored' if status == 'failed': return 'failed' return 'passed'
def normalize_status(building : bool, status : str) -> str: status = helper.to_lower_case(status) if building is True: return 'process' if status == 'unstable': return 'errored' if status in ['failure', 'not_build']: return 'failed' return 'passed'
def normalize_status(running: str, status: str) -> str: status = helper.to_lower_case(status) if running is True: return 'process' if status == 'error': return 'errored' if status == 'failure': return 'failed' return 'passed'
def test_to_lower_case() -> None: assert helper.to_lower_case(None) == 'none' assert helper.to_lower_case('SUCCESS') == 'success'