summaryrefslogtreecommitdiffstats
path: root/test/test_rule_properties.py
blob: 7db3afd102d80e8f30a2a0c541ed0d5c4a4b2f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Tests related to rule properties."""
from ansiblelint.rules import RulesCollection


def test_severity_valid(default_rules_collection: RulesCollection) -> None:
    """Test that rules collection only has allow-listed severities."""
    valid_severity_values = [
        "VERY_HIGH",
        "HIGH",
        "MEDIUM",
        "LOW",
        "VERY_LOW",
        "INFO",
    ]
    for rule in default_rules_collection:
        assert rule.severity in valid_severity_values