Skip to content

Commit

Permalink
set equality fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 committed Jun 13, 2024
1 parent 254a0f2 commit 4742fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etos_test_runner/lib/verdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def __init__(self, rules: list) -> None:
"""Create new instance."""
self.rules = rules
for rule in self.rules:
if rule.keys() != self.REQUIRED_RULE_KEYWORDS:
if set(rule.keys()) != self.REQUIRED_RULE_KEYWORDS:
raise ValueError(
f"Unsupported rule definition: {rule}. "
"Required keywords: {self.REQUIRED_RULE_KEYWORDS}"
f"Required keywords: {self.REQUIRED_RULE_KEYWORDS}"
)
for key in rule["condition"].keys():
if key not in self.SUPPORTED_CONDITION_KEYWORDS:
Expand Down

0 comments on commit 4742fb4

Please sign in to comment.