pytest-ansible
github.com
- Free plan
- Linux
7.1 Club score Visit github.com
What the maker publishes
- Ansible fixtures
- Legacy fixtures include `ansible_module`, `ansible_adhoc`, `localhost`, and `ansible_facts` for calling modules, working with inventory, and accessing system facts from pytest tests. source
- Audience
- The documentation describes the plugin for Ansible collection authors and developers who want to use Ansible from pytest tests. source
- Collection testing
- Its `pytest-ansible-units` plugin lets users run Ansible collection unit tests with pytest and test individual modules. source
- Deprecation
- The project is deprecated and has a planned end of life in December 2026. source
- Deprecation
- The project is deprecated and has a planned end of life in December 2026. source
- Installation
- The README shows installation with `pip install pytest-ansible`. source
- Installation
- The README instructs users to install the plugin with pip install pytest-ansible. source
- Integrations
- The documented ecosystem includes pytest, Ansible and Ansible collections, and legacy integration with Molecule. source
- Intended users
- The documented use cases focus on Ansible collection authors and people writing pytest tests that call Ansible modules or use Ansible inventory. source
- Legacy fixtures
- Legacy fixtures include ansible_adhoc, ansible_module, localhost, and ansible_facts for interacting with Ansible from pytest tests. source
- License
- The repository identifies its license as MIT. source
- License
- The project says it is free and open source under the MIT license. source
- Migration guidance
- The project recommends ADE with plain pytest for collection unit tests, tox-ansible for collection CI, and the Molecule CLI for scenarios. source
- Molecule limitation
- The README says its pytest integration does not support Molecule `shared_state` or `--workers`. source
- Molecule limitation
- The pytest integration for Molecule does not support Molecule shared_state or --workers and is deprecated. source
- Molecule support
- Molecule scenario integration through pytest is deprecated; the README recommends using the Molecule CLI or tox-ansible instead. source
- Purpose
- pytest-ansible is a pytest plugin for using Ansible in tests and running Ansible collection unit tests with pytest. source
- Purpose
- pytest-ansible is a pytest plugin for using Ansible in tests, running Ansible collection unit tests with pytest, and exposing Molecule scenarios through a pytest fixture. source
- Requirements
- The project says it supports Python 3.10 or newer and ansible-core 2.14 or newer. source
- Runtime requirements
- The project lists Python 3.10 or newer and ansible-core 2.14 or newer as supported versions. source
- Security
- The repository links to a security policy, but the opened project pages do not state security certifications or compliance claims. source
- Security policy
- The repository links a security policy, but the opened page did not expose policy details. source
- Support
- The README directs users with problems to file a GitHub issue with a detailed description. source
- Unit testing
- Its pytest-ansible-units plugin supports running Ansible collection unit tests with pytest and testing individual Ansible modules in isolation. source
Checked against the maker's pages on 8 Oct 2026.