Skip to content

Commit

Permalink
pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonlima committed Sep 9, 2024
1 parent e44f9bc commit bd15f75
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ def __parse_test_case(
try:
tc_steps = __retrieve_steps(steps_method)
except Exception as e:
logger.warning(f"Fail parsing steps method for {tc_name}, Error:{str(e)}")
logger.warning(f"Failed parsing steps method for {tc_name}, Error:{str(e)}")

pics_method = __get_method_by_name(pics_method_name, methods)
if pics_method:
try:
tc_pics = __retrieve_pics(pics_method)
except Exception as e:
logger.warning(f"Fail parsing PICS method for {tc_name}, Error:{str(e)}")
logger.warning(f"Failed parsing PICS method for {tc_name}, Error:{str(e)}")

# - PythonTestType.COMMISSIONING: test cases that have a commissioning first step
# - PythonTestType.NO_COMMISSIONING: test cases that follow the expected template
Expand Down Expand Up @@ -237,7 +237,9 @@ def __retrieve_steps(method: FunctionDefType) -> List[MatterTestStep]:
step_name = step.args[ARG_STEP_DESCRIPTION_INDEX].value
parsed_step_name = step_name
except Exception as e:
logger.warning(f"Fail parsing step name from {method.name}, Error:{str(e)}")
logger.warning(
f"Failed parsing step name from {method.name}, Error:{str(e)}"
)
parsed_step_name = "UNABLE TO PARSE TEST STEP NAME"

python_steps.append(
Expand Down

0 comments on commit bd15f75

Please sign in to comment.