pytest-dev/pytest-testinfra
Testinfra test your infrastructures observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 93
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 4189
- days_rel: 521
- days_push: 44
- n_releases_24m: 3
Adoption not part of the score
2477 stars · 359 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Testinfra is a pytest plugin for writing unit tests in Python that verify the actual state of servers managed by tools like Ansible, Salt, Puppet, and Chef. It is the Python equivalent of Serverspec, letting you assert on files, packages, and services across your infrastructure.
Use cases
- verify server configuration with pytest tests
- test ansible playbooks actually applied the right state
- check that nginx is installed and running on my servers
- assert file permissions and contents on remote hosts
- run infrastructure tests against docker containers
- replace serverspec with a python-based tool
- use infrastructure tests in ci/cd pipelines
When to choose
- you use pytest and want infrastructure verification in Python
- you manage servers with Ansible, Salt, Puppet, or Chef and need state assertions
- you want a Serverspec-like tool in the Python ecosystem
When to avoid
- you need a project with active maintenance and fast issue responses
- you prefer behavior testing over state testing
- you need a non-Python test stack
Facets
library · maturity maintenance
testing infrastructure-as-code configuration-management testing infrastructure-as-code python cli pytest-plugin serverspec-equivalent infrastructure-testing ansible saltstack chef puppet tdd devops automation linux docker kubernetes
1 source
- readme: https://github.com/pytest-dev/pytest-testinfra · fetched 2026-08-28 · 2229ba0be432
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pytest-dev/pytest-testinfra | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="pytest-dev/pytest-testinfra")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem