summaryrefslogtreecommitdiffstats
path: root/test/test_skiputils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_skiputils.py')
-rw-r--r--test/test_skiputils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_skiputils.py b/test/test_skiputils.py
index 7e736e7..2975945 100644
--- a/test/test_skiputils.py
+++ b/test/test_skiputils.py
@@ -1,4 +1,5 @@
"""Validate ansiblelint.skip_utils."""
+
from __future__ import annotations
from pathlib import Path
@@ -39,8 +40,8 @@ PLAYBOOK_WITH_NOQA = """\
@pytest.mark.parametrize(
("line", "expected"),
(
- ("foo # noqa: bar", "bar"),
- ("foo # noqa bar", "bar"),
+ pytest.param("foo # noqa: bar", "bar", id="0"),
+ pytest.param("foo # noqa bar", "bar", id="1"),
),
)
def test_get_rule_skips_from_line(line: str, expected: str) -> None: