Skip to content

Commit

Permalink
Upgraded ansible-lint upper bound to 25.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
audgirka committed Feb 7, 2025
1 parent 4b3d979 commit 473b4cb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/unit/test_loader_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,18 @@ def test_ansiblelint_collection_role_errors(populated_collection_root, tmp_colle
collection_loader._lint_collection()
shutil.rmtree(task_dir)

assert "name[casing]: All names should start with an uppercase letter." in str(
caplog.records[0]
)
assert "jinja[spacing]: Jinja2 spacing could be improved:" in str(caplog.records[1])
from sys import version_info as python_version_info

if python_version_info.major > 3 and python_version_info.minor >= 10:
assert "name[casing][/]: All names should start with an uppercase letter." in str(
caplog.records[0]
)
assert "jinja[spacing][/]: Jinja2 spacing could be improved:" in str(caplog.records[1])
if python_version_info.major > 3 and python_version_info.minor == 9:
assert "name[casing]: All names should start with an uppercase letter." in str(
caplog.records[0]
)
assert "jinja[spacing]: Jinja2 spacing could be improved:" in str(caplog.records[1])


def test_ansiblelint_collection_meta_runtime_errors(
Expand Down

0 comments on commit 473b4cb

Please sign in to comment.