Example #1
0
 def test_should_be_valid(self):
     full_path = find_config_file(CONFIG_FILE)
     assert full_path, f"Could not find severity rule config file {CONFIG_FILE}"
     assert SeverityRules.load_from_file(full_path)
Example #2
0
 def _load_severity_rules():
     # Imbues the AlertGenerator class with user-defined severity rules
     AlertGenerator.severity_rules = SeverityRules.load_from_file()