blob: 8455aaf45e36d9c7c5eefc78be5f6e31b5e64912 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""Test playbooks with local content."""
from ansiblelint.rules import RulesCollection
from ansiblelint.runner import Runner
def test_local_collection(default_rules_collection: RulesCollection) -> None:
"""Assures local collections are found."""
playbook_path = "test/local-content/test-collection.yml"
runner = Runner(playbook_path, rules=default_rules_collection)
results = runner.run()
assert len(runner.lintables) == 1
assert len(results) == 0
|