summaryrefslogtreecommitdiffstats
path: root/test/test_list_rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_list_rules.py')
-rw-r--r--test/test_list_rules.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_list_rules.py b/test/test_list_rules.py
index dab16e3..85ef53f 100644
--- a/test/test_list_rules.py
+++ b/test/test_list_rules.py
@@ -18,6 +18,13 @@ def test_list_rules_includes_opt_in_rules(project_path: Path) -> None:
assert ("opt-in" in result_list_rules.stdout) is True
+def test_list_rules_includes_autofix() -> None:
+ """Checks that listing rules also includes the autofix label for applicable rules."""
+ result_list_rules = run_ansible_lint("--list-rules")
+
+ assert ("autofix" in result_list_rules.stdout) is True
+
+
@pytest.mark.parametrize(
("result", "returncode", "format_string"),
(