fix: no error on rules without references

This commit is contained in:
Florian Roth 2020-07-13 18:16:32 +02:00
parent 8d91659c2a
commit 758f5039b5

View File

@ -478,7 +478,7 @@ class TestRules(unittest.TestCase):
references = self.get_rule_part(file_path=file, part_name="references")
if not references:
print(Fore.YELLOW + "Rule {} has no field 'references'.".format(file))
faulty_rules.append(file)
#faulty_rules.append(file)
elif not isinstance(references, list):
print(Fore.YELLOW + "Rule {} has a refences field that isn't a list.".format(file))
faulty_rules.append(file)