Skip to content

Commit

Permalink
More lint fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltat committed Aug 30, 2023
1 parent 73f93c8 commit c8d744d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions assertionengine/assertion_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,12 @@ def int_dict_verify_assertion(
return verify_assertion(
value, operator, evaluated_expected, message, custom_message
)
elif expected and operator in NumericalOperators:
if expected and operator in NumericalOperators:
for k, v in value.items():
exp = expected[k]
verify_assertion(v, operator, exp, message, custom_message)
return value
else:
raise AttributeError(
f"Operator '{operator.name}' is not allowed in this Keyword."
f"Allowed operators are: {NumericalOperators} and {SequenceOperators}"
)
raise AttributeError(
f"Operator '{operator.name}' is not allowed in this Keyword."
f"Allowed operators are: {NumericalOperators} and {SequenceOperators}"
)

0 comments on commit c8d744d

Please sign in to comment.