Skip to content

Commit

Permalink
Include SKIPPED Result when showing results (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasimha-raghavan-unskript authored Sep 15, 2023
1 parent 6aa72c3 commit 653f59e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions unskript-ctl/unskript-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
TBL_HDR_RBOOK_NAME="\033[36m Runbook Name \033[0m"
TBL_HDR_CHKS_COUNT="\033[32m Checks Count (Pass/Fail/Error) (Total checks run) / (Skipped checks) \033[0m"
TBL_CELL_CONTENT_PASS="\033[1m PASS \033[0m"
TBL_CELL_CONTENT_SKIPPED="\033[1m SKIPPED \033[0m"
TBL_CELL_CONTENT_FAIL="\033[1m FAIL \033[0m"
TBL_CELL_CONTENT_ERROR="\033[1m ERROR \033[0m"
TBL_HDR_DSPL_CHKS_NAME="\033[35m Failed Check Name / TS \033[0m"
Expand Down Expand Up @@ -253,21 +254,20 @@ def run_ipynb(filename: str, status_list_of_dict: list = None):

ids = get_code_cell_action_uuids(nb.dict())
result_table = [["Checks Name", "Result", "Failed Count", "Error"]]
if len(outputs) == 0:
if UNSKRIPT_GLOBALS.get('skipped'):
for check_name,connector in UNSKRIPT_GLOBALS.get('skipped'):
result_table.append([
check_name,
"SKIPPED",
"N/A",
"Credential Incomplete"
if UNSKRIPT_GLOBALS.get('skipped'):
for check_name,connector in UNSKRIPT_GLOBALS.get('skipped'):
result_table.append([
check_name,
TBL_CELL_CONTENT_SKIPPED,
"N/A",
"Credential Incomplete"
])
status_dict['result'].append([
check_name,
"",
connector,
'ERROR'
])
status_dict['result'].append([
check_name,
"",
connector,
'ERROR'
])
results = {}
if ids:
results = outputs[0]
Expand Down

0 comments on commit 653f59e

Please sign in to comment.