From e16e9e8ea7e275d0704b44533a97cdc59aa8d3c4 Mon Sep 17 00:00:00 2001 From: frack113 Date: Tue, 21 Sep 2021 22:54:45 +0200 Subject: [PATCH] fix timeframe compare error --- tests/test_rules.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_rules.py b/tests/test_rules.py index d4f2e0ef5..b9dd24837 100755 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -181,13 +181,17 @@ class TestRules(unittest.TestCase): return False for named_condition in detection1: + #don't check timeframes + if named_condition == "timeframe": + continue + # condition clause must be the same too if named_condition == "condition": if detection1["condition"] != detection2["condition"]: return False else: continue - + # Named condition must exist in both rule files if named_condition not in detection2: return False