$npx skillfedfor your agent

approvaltests

Assertion/verification library to aid testing

Worth itPyPI LibrariesReleased Aug 2026168.0K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — approvaltests-19.1.1-py3-none-any.whl
v19.1.1 · released 2026-08-02 · Python >=3.10 · 10 runtime deps: pytest, empty-files, typing_extensions, pyperclip, beautifulsoup4, allpairspy, testfixtures, mock

Yes. ApprovalTests fills a genuine gap in Python testing: snapshot-based verification for outputs too complex for simple assertions. Active maintenance, low install friction, permissive license, no known vulnerabilities, and broad Python version support (3.10–3.14) make it a solid choice. Install it if you regularly test long strings, structured objects, or generated content where a diff tool beats manual assertion logic.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest or unittest as your test runner; reporters (diff tools) are optional but recommended for viewing approval failures.
  • Low install friction: pure Python wheel with no compiled dependencies.
  • Active maintenance—last commit 2026-08-10, released 2026-08-02.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and state any material changes.

last release 2026-08-02 (12 days) · last repo commit 2026-08-10 · 209 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 167,975 downloads/mo, #10,458 on PyPI

Verify before relying

pip install approvaltests

from approvaltests.approvals import verify

def test_simple():
    result = "Hello ApprovalTests"
    verify(result)
  • Whether the 10 runtime dependencies (pytest, beautifulsoup4, pyperclip, etc.) are all required or only needed for specific features.
  • Performance characteristics when verifying very large objects or arrays.
Same gist for agents: .md · .json

What it is and what it does

ApprovalTests is a snapshot-based testing library that compares test output against previously approved golden-master files. Instead of writing brittle assertions for complex objects, you capture the actual output, review it in a diff tool, and approve it as the expected result. On subsequent runs, any deviation from the approved output triggers a diff comparison, letting you decide whether the change is intentional or a regression.

The library integrates with pytest and unittest, supports CLI invocation for cross-language testing, and includes reporters that launch external diff tools (like your system's native diff viewer or IDE integrations). It handles long strings, large arrays, HTML, and structured objects—scenarios where line-by-line assertion code becomes unwieldy. Extra dependencies unlock optional features like clipboard reporting, HTML verification, and pairwise test combination.

Use it for

  • Verify multi-line text output or formatted reports without writing fragile string comparisons.
  • Test complex nested data structures (dicts, lists, objects) by comparing their serialized form to an approved snapshot.
  • Review HTML generation or template output using a visual diff tool instead of regex assertions.
  • Detect unintended changes in API responses or large JSON structures across test runs.
  • Manage test data for exercises, katas, or green-field projects using the starter project template.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

ApprovalTests fills a genuine gap in Python testing: snapshot-based verification for outputs too complex for simple assertions. Active maintenance, low install friction, permissive license, no known vulnerabilities, and broad Python version support (3.10–3.14) make it a solid choice. Install it if you regularly test long strings, structured objects, or generated content where a diff tool beats manual assertion logic.

Install

approvaltests on PyPI

Before you install

Low install friction: pure Python wheel with no compiled dependencies. Active maintenance—last commit 2026-08-10, released 2026-08-02. Requires Python 3.10 or later; tested on 3.10, 3.11, 3.12, 3.13, 3.14.

Requires pytest or unittest as your test runner; reporters (diff tools) are optional but recommended for viewing approval failures.

License in practice

Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and state any material changes.

Quickstart

pip install approvaltests

from approvaltests.approvals import verify

def test_simple():
    result = "Hello ApprovalTests"
    verify(result)

Verify before relying

  • Whether the 10 runtime dependencies (pytest, beautifulsoup4, pyperclip, etc.) are all required or only needed for specific features.
  • Performance characteristics when verifying very large objects or arrays.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
10 packages
pytestempty-filestyping_extensionspyperclipbeautifulsoup4allpairspytestfixturesmockpsutilapproval_utilities
MaintenanceActively maintained 12 days since the last release
Last repo commit
First released
Downloads167,975 / month, #10,458 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities

Evidence: approvaltests-19.1.1-py3-none-any.whl

Tags

Capabilities
snapshot testing pythonapproval testing frameworkgolden master test verificationcomplex object assertion testingdiff-based test comparison
Topics
snapshot-testinggolden-masterapproval-testing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “complex object assertion testing”

  • approvaltestsApprovalTests provides a snapshot-based assertion library for testing…
  • pytest-deepassertA pytest plugin that replaces standard assertion failures with…
  • pytest-assumeA pytest plugin that collects and reports multiple assertion failures…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also approval-utilities · expecttest · testtools · snapshottest · qase-python-commons · pytest-snapshot · datadiff · pytest-clarity · pytest-insta · pytest-html-reporter