From 84dbda7f008f60eb7d77a4f67f847f198b4dd7d6 Mon Sep 17 00:00:00 2001 From: Joohyong Han Date: Fri, 2 Aug 2024 15:05:11 -0400 Subject: [PATCH] fixed a case-senstive case --- src/dfcx_scrapi/tools/entities_checker_util.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dfcx_scrapi/tools/entities_checker_util.py b/src/dfcx_scrapi/tools/entities_checker_util.py index 199ec043..45c4c65a 100644 --- a/src/dfcx_scrapi/tools/entities_checker_util.py +++ b/src/dfcx_scrapi/tools/entities_checker_util.py @@ -1001,7 +1001,8 @@ def _evaluate_parameter_output(row: pd.Series): captured_parameters = row["parameters_set"] if captured_parameters: for param, value in captured_parameters.items(): - if param == parameter_id and value == entity: + if (param.lower() == parameter_id and + value.lower() == entity): return "PASS" return "FAIL" @@ -1065,8 +1066,10 @@ def check_routes(routes): for route in routes: if isinstance(route, dict) and bool(route): param, value = route.copy().popitem() - if (row["parameter_id"].lower() == param.lower() and - row["entity"].lower() == value.lower() + param = param.lower() + value = value.lower() + if (row["parameter_id"].lower() == param and + row["entity"].replace(" ", "").lower() == value ): return True return False