{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A pytest plugin that integrates Ansible into test functions, allowing you to call Ansible modules and iterate over inventory hosts directly from pytest tests.","skillfed_tags":["ansible-testing","deprecated-planned"],"use_cases":["Run unit tests for Ansible collection modules using pytest with only Python 3.10+ and ansible-core installed.","Iterate over hosts and groups from an Ansible inventory within pytest parametrized tests without writing shell wrappers.","Execute ad-hoc Ansible module calls from pytest test functions to validate module behavior in isolation.","Integrate Ansible module testing into existing pytest CI pipelines for collections under active development."],"what_it_does":"pytest-ansible is a pytest plugin that bridges Ansible and pytest testing workflows. It was originally designed to let you call Ansible modules and iterate over inventory from inside test functions, eliminating the need for shell scripting. The plugin has been actively maintained since July 2014 and supports Python 3.10+ and ansible-core 2.14+.\n\nHowever, the maintainers have announced planned end-of-life in December 2026, as the broader ecosystem\u2014including plain pytest, ansible-test, Molecule, tox-ansible, and ansible-dev-environment\u2014now provides better-integrated solutions for collection testing and orchestration. The plugin remains functional and installable for existing users, but the documentation includes migration patterns using parametrize and subprocess helpers to replace its fixtures. If you are starting a new project, the migration paths in the documentation are the recommended approach.","worth_installing":"Yes, if you have an existing pytest-ansible codebase or need to test Ansible modules in pytest today\u2014the plugin is stable and actively maintained. However, no for new projects: the maintainers recommend using plain pytest with parametrize and subprocess helpers (documented in the package), or Molecule for multi-host integration. Plan for migration before December 2026 EOL."},"id":"pytest-ansible","links":{"html":"https://skillfed.io/packages/pytest-ansible","md":"https://skillfed.io/packages/pytest-ansible.md","pypi":"https://pypi.org/project/pytest-ansible/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":null,"license_treatment":"permissive","name":"pytest-ansible","python_support":"supports_current","summary":"Plugin for pytest to simplify calling ansible modules from tests or fixtures"},"popularity":{"monthly_downloads":983385,"position":4580,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"26.8.0"}
