Packages
Polyfactory generates mock data objects from type hints, supporting dataclasses, Pydantic models, typed-dicts, msgspec structs, and other typed structures for testing and development.
Extends Python's unittest framework to compare XML documents structurally using XPath expressions and lxml, rather than comparing raw XML strings.
Provides matcher objects that compare equal to values meeting specified criteria, enabling flexible assertions in pytest-style unit tests without manual field-by-field comparison.
Install it if you write tests with pytest and encounter fields you can't assert exactly.
Python client library for interacting with WireMock instances to mock HTTP services in tests, supporting both standalone servers and containerized deployments.
bitmath converts and performs arithmetic on file sizes across SI and NIST prefix units (kB to YiB), with support for human-readable formatting, rich comparisons, and capacity math.
PyTestArch lets you define and test architectural rules for Python code by analyzing module imports and dependencies, catching violations where modules import from places they shouldn't.
Mocks Django QuerySet operations in memory for unit testing, supporting filtering, aggregation, field lookups, and CRUD operations without a database.
Install it if you want to test query logic without database overhead; skip it only if your test suite already has fast database fixtures or you need QuerySet methods…
A flake8 plugin that detects and reports style inconsistencies and common mistakes in pytest-based test code, enforcing best practices for fixtures, parametrization, assertions, and exception handling.
Generates mock data objects that conform to pydantic models, dataclasses, and TypedDicts by parsing type annotations and field constraints.
TestSlide is a test framework for Python that provides strict mocks integrated with unittest.TestCase, enabling unit testing, TDD, and BDD with detailed validation and failure guidance.
flexmock creates mock, stub, spy, and fake objects for testing Python code, with zero external dependencies and full type annotations.
Reads MS Excel files and translates Excel formulas into Python code for evaluation, allowing spreadsheet calculations to run without Excel.
However, high install friction and the gap since the last release warrant checking that your target Excel functions are supported and testing numeric precision on…
Provides a `@parametrize` decorator that works with `unittest.TestCase` to run parameterized tests, mimicking pytest's `@pytest.mark.parametrize` syntax without requiring a migration away from unittest.
However, the dormant maintenance status and strict decorator-ordering rules mean it's best suited for teams committed to pytest as their long-term test runner.