(test: Test)
return iter_indicator
Returns a string of the format '[{current_test_number}/{num_parameterised_instances}]'.

    For example, for the 3rd run of a test that is parameterised with 5 parameter sets the
    return value is '[3/5]'.
Returns a string of the format '[{current_test_number}/{num_parameterised_instances}]'.
Returns a string of the format [ { current_test_number } / { num_parameterised_instances } ] .
def format_test_case_number(test: Test) -> str:
    """
    Returns a string of the format '[{current_test_number}/{num_parameterised_instances}]'.

    For example, for the 3rd run of a test that is parameterised with 5 parameter sets the
    return value is '[3/5]'.
    """
    param_meta = test.param_meta
    if param_meta.group_size > 1:
        pad = len(str(param_meta.group_size))
        iter_indicator = (
            f"[{param_meta.instance_index + 1:>{pad}}/{param_meta.group_size}]"
        )
    else:
        iter_indicator = ""

    return iter_indicator
def format_test_case_number ( test : Test ) -> str : param_meta = test . param_meta if param_meta . group_size > 1 : pad = len ( str ( param_meta . group_size ) ) iter_indicator = ( f"[{param_meta.instance_index + 1:>{pad}}/{param_meta.group_size}]" ) else : iter_indicator = "" return iter_indicator