Skip to content

Commit

Permalink
fixed a case-senstive case
Browse files Browse the repository at this point in the history
  • Loading branch information
jkshj21 authored Aug 2, 2024
1 parent 23da780 commit 84dbda7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/dfcx_scrapi/tools/entities_checker_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84dbda7

Please sign in to comment.