summaryrefslogtreecommitdiffstats
path: root/test/test_skiputils.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /test/test_skiputils.py
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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: