Packages
A pytest fixture and standalone context manager that runs a fake HTTP server on localhost, letting you test HTTP clients without hitting real servers by defining expected requests and their responses.
pytest-httpx provides a pytest fixture that intercepts httpx requests and replies with user-defined mock responses, supporting both sync and async clients.
Install it if you test code that uses httpx; skip it only if you don't use httpx or prefer a different mocking approach.
A pytest plugin that mocks httpx2 HTTP requests using respx, letting you define expected requests and responses in tests without hitting real endpoints.
A pytest plugin that replaces default assertion diff output with colored, side-by-side diffs from ICDiff for easier comparison of mismatched values.
A pytest plugin that selectively ignores test case results while still executing the tests, allowing you to suppress failures from specific tests by name or pattern.
pytest-incremental is a pytest plugin that speeds up test execution by analyzing project structure and file changes to reorder tests and skip unchanged ones.
A pytest plugin that enables snapshot testing by comparing test outputs against stored reference values, with built-in support for text, binary, JSON, and pickle formats plus an interactive review tool.
However, the unclear license and aging maintenance (265 days since last release) mean you should verify the license terms and assess whether the project's pace…
A pytest plugin that displays test failures and errors immediately as they occur, rather than deferring them until the end of the test session.
A pytest plugin that organizes tests into unit, integration, and slow integration tiers, running them sequentially and skipping later tiers if earlier ones fail.
A pytest plugin that automatically checks whether imports in Python files are sorted correctly according to isort rules, failing tests when import order violations are found.
Install it if your team values consistent import ordering; skip it if you prefer a separate linting tool or have no import-order standards.
A pytest plugin that builds hierarchical dictionaries mirroring the test collection tree, tracking test outcomes, durations, and aggregated counts across directory, module, class, and function levels.
Install it if you need hierarchical test result aggregation, JSON export of test structure, or programmatic access to test outcomes grouped by suite/module/class.
A pytest plugin that links test cases to JIRA tickets, allowing tests to be skipped or marked as expected failures based on ticket status without creating or closing tickets.
However, the GPL-2.0-only copyleft license means proprietary projects must either dual-license or avoid it.
A pytest plugin that marks individual tests with JIRA XRAY IDs and uploads their pass/fail results back to JIRA, supporting multiple authentication methods and test execution tracking.
A pytest plugin that generates JSON reports of test results, with optional JSON API normalization for consumption by downstream tools.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
A pytest plugin that generates JSON-formatted test reports, enabling test results to be processed by other applications or analysis tools.
Allows you to use pytest fixtures directly as parameters in @pytest.mark.parametrize decorators and in other fixture parameter lists.
However, dormant maintenance means it may break with newer pytest releases—verify compatibility with your pytest version before adopting, and consider whether…
Allows you to reference pytest fixtures directly within @pytest.mark.parametrize decorators, including nested data structures and fixture attributes.
Provides pytest fixtures for running local FTP and TLS-FTP servers in tests, enabling you to test FTP client functionality without external dependencies.
Install it if you need to test FTP functionality in your test suite.
Provides pytest fixtures that spin up local HTTP and SMTP servers for testing code that makes real network requests without relying on external services or mocking.
Pytest-logger is a pytest plugin that configures Python logging handlers to capture and display logs from named loggers during test execution, routing output to both the terminal and per-logger files.
Install it if you need structured per-logger log capture and file organization during pytest runs.
A pytest plugin that configures Python logging to output to the console and allows adjusting log verbosity via pytest's `-v` flag.
Extends pytest's caplog fixture to capture and assert on logs produced by loguru, enabling structured logging verification in pytest tests.
Install it if you need to assert on loguru output in tests.
A pytest plugin that repeats tests a fixed number of times or for a specified duration, useful for detecting intermittent failures and stress-testing.
A pytest plugin that executes Python code snippets embedded in markdown files and docstrings as automated tests, detecting fenced code blocks and inline examples.
Generates Markdown test reports from pytest test runs, summarizing pass/fail/skip/error outcomes in a formatted document.
A pytest plugin that generates test outcome reports formatted as markdown tables, with options for verbosity, custom columns from test marks, execution duration tracking, and multiple markdown flavors.
A pytest plugin that integrates memray memory profiling into test runs, tracking memory allocations per test and reporting detailed allocation breakdowns.
A pytest plugin that integrates with Mergify to trace tests via OpenTelemetry, detect flaky tests, quarantine failures, and selectively run only previously-failing tests in merge queue reruns.
The main gotcha is that MERGIFY_TOKEN must be set and test selection requires organization opt-in on Mergify's side, but these are configuration rather than blocker…
A pytest plugin that sends test results to messaging platforms like Slack and Ding Talk, integrating test reporting directly into team communication channels.
Install it if your team workflow centers on these messaging platforms; skip it if you rely on email or other notification channels.
A pytest plugin that captures and exposes test session metadata—Python version, platform, installed packages, plugins, and CI environment variables—for use in tests, fixtures, reports, and custom hooks.
Provides a pytest fixture that wraps the mock library's patching API, automatically cleaning up patches after each test and offering utilities like spy and stub for easier mocking in pytest test suites.
Provides pytest fixtures that spin up real database and service containers (PostgreSQL, MySQL, Redis, MongoDB, etc.) for integration testing, eliminating the need to mock database queries.
A pytest plugin that automatically measures and logs resource consumption (memory, CPU, execution time) for each test function, storing results in a local SQLite database for historical tracking and comparison.
However, the dormant maintenance status (last release June 2023) means compatibility with very recent pytest or Python versions is unverified; test this in a staging…
A pytest plugin that marks and runs tests under MPI (Message Passing Interface), enabling testing of MPI-related code within the pytest framework.
pytest-mpl is a pytest plugin that automates visual regression testing for Matplotlib figures by comparing generated images against reference baselines using RMS tolerance or hash comparison.
Install it if visual consistency of plots is part of your test suite; skip it if you don't generate or test figures programmatically.
Integrates mypy static type checking into pytest, running type checks on your source files as part of your test suite.
A pytest plugin that runs type-checking tests against mypy by defining test cases in YAML files with inline type assertions and custom matchers.
Install it if you maintain a mypy plugin, publish type stubs, or want to add type-safety regression tests to a typed library.
A pytest plugin that provides MySQL and MariaDB fixtures for testing—manages both local database processes and connections to running instances, with automatic cleanup between tests.
Install it if your test suite needs a managed MySQL database.
A pytest plugin that generates NUnit3-format XML test result reports, enabling integration with test result publishing systems like Azure Pipelines.