Tests/store_packs.py
def _build_summary_table(packs_input_list):
    """Build summary table from pack list

    Args:
        packs_input_list (list): list of Packs

    Returns:
        PrettyTable: table with upload result of packs.

    """
    table_fields = ["Index", "Pack Name", "Public uploaded URL", "Version", "Status"]
    table = prettytable.PrettyTable()
    table.field_names = table_fields

    for index, pack in enumerate(packs_input_list, start=1):
        pack_status_message = PackStatus[pack.status].value
        row = [index, pack.name, pack.relative_storage_path, pack.latest_version, pack_status_message]
        table.add_row(row)

    return table
Build summary table from pack list

    Args:
        packs_input_list (list): list of Packs

    Returns:
        PrettyTable: table with upload result of packs.

    
Build summary table from pack list
Build summary table from pack list
def _build_summary_table(packs_input_list):
    table_fields = ["Index", "Pack Name", "Public uploaded URL", "Version", "Status"]
    table = prettytable.PrettyTable()
    table.field_names = table_fields
    for index, pack in enumerate(packs_input_list, start=1):
        pack_status_message = PackStatus[pack.status].value
        row = [index, pack.name, pack.relative_storage_path, pack.latest_version, pack_status_message]
        table.add_row(row)
    return table
def _build_summary_table ( packs_input_list ) : table_fields = [ "Index" , "Pack Name" , "Public uploaded URL" , "Version" , "Status" ] table = prettytable . PrettyTable ( ) table . field_names = table_fields for index , pack in enumerate ( packs_input_list , start = 1 ) : pack_status_message = PackStatus [ pack . status ] . value row = [ index , pack . name , pack . relative_storage_path , pack . latest_version , pack_status_message ] table . add_row ( row ) return table
Build summary table from pack list
Build summary table from pack list
"""Build summary table from pack list

    Args:
        packs_input_list (list): list of Packs

    Returns:
        PrettyTable: table with upload result of packs.

    """
table with upload result of packs.
table with upload result of packs .
PrettyTable
packs_input_list
list of Packs
list of Packs