From 758f5039b5e671b99f931fa57af67cc941ca778c Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Mon, 13 Jul 2020 18:16:32 +0200 Subject: [PATCH] fix: no error on rules without references --- tests/test_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_rules.py b/tests/test_rules.py index adca0b02..06fa8b10 100755 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -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)