Skip to content

Commit

Permalink
More linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Feb 14, 2021
1 parent 922ed99 commit 6048171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/TestExamples.py
Expand Up @@ -5,13 +5,14 @@
from ansiblelint.runner import Runner


@pytest.fixture(scope="function")
@pytest.fixture
def _change_into_examples_dir(request):
os.chdir('examples')
yield
os.chdir('..')


@pytest.mark.usefixtures('_change_into_examples_dir')
def test_example(default_rules_collection, _change_into_examples_dir):
"""example.yml is expected to have 15 match errors inside."""
result = Runner('playbooks/example.yml', rules=default_rules_collection).run()
Expand Down

0 comments on commit 6048171

Please sign in to comment.