Packages

Testing & Mocking Packages

Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).

166 packages

Packages in Testing & Mocking

81Health
Tool PyPI

pytest-xdist

Distribute pytest test runs across multiple CPUs and hosts to cut suite runtime

1,908
MIT
Used by 19
84Health
Library PyPI

pytest-mock

A pytest plugin that provides a `mocker` fixture wrapping Python's `unittest.mock`, with automatic teardown between tests.

2,041
MIT
Used by 16
67Health
Tool PyPI

pytest-order

Pytest plugin for running tests in a specific, controllable order

211
MIT
Used by 4
72Health
Tool PyPI

pytest-html

A pytest plugin that turns your test run into an interactive, shareable HTML report.

779
MPL-2.0
Used by 3
41Health
Tool PyPI

pytest-docker

Pytest fixtures that spin up Docker Compose services for integration tests, then tear them down automatically.

489
MIT
Used by 3
49Health
Library PyPI

pytest-cases

Separate test code from test cases in pytest, with fixture unions and parametrization goodies for readable, reusable test suites.

377
BSD 3
Used by 2
43Health
Tool PyPI

pytest-repeat

A pytest plugin for repeating tests a set number of times

196
MPL-2.0
Used by 2
41Health
Tool PyPI

pytest-sugar

A pytest plugin that replaces the default test runner output with a live progress bar, instant failure display, and colorized results.

1,532
BSD 3
Used by 1
71Health
Tool PyPI

allure-pytest

A pytest plugin that generates rich, interactive Allure test reports with steps and attachments

815
Apache 2.0
Used by 1
60Health
Library PyPI

pytest-randomly

Pytest plugin that randomly orders tests and controls random.seed for reproducible, dependency-flushing test runs.

721
MIT
Used by 1
54Health
Library PyPI

pytest-flask

A pytest plugin with ready-made fixtures for testing Flask applications end to end.

499
MIT
Used by 1
44Health
Library PyPI

unittest-xml-reporting

A unittest test runner that saves results as xUnit/JUnit XML for CI systems to consume.

307
Other
Used by 1
58Health
Tool PyPI

pytest-reportlog

A pytest plugin that streams test session events to a JSON Lines file for real-time monitoring and processing.

104
MIT
Used by 1
35Health
SDK PyPI

wiremock

Python client and Testcontainers integration for driving a WireMock server from tests

81
Apache 2.0
Used by 1
37Health
Library PyPI

kgb

Function spies for Python unit tests that intercept, record, and reroute calls without heavy-handed mocking.

53
MIT
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers