Skip to main content

pytest-results

PyPI - Version PyPI - Downloads GitHub Stars CI Ruff

Easily spot regressions in your tests.

A Pytest plugin for snapshot testing: a test returns a value, the plugin stores it in a snapshot file, and compares the next runs with it.

Installation

⚠️ Requires Python 3.12 or higher

pip install pytest-results

Quick start

Return the value to check from your test:

def test_function():
    return {"hello": "world"}

The first run fails, since there is no snapshot to compare with yet. Accept the new results to store them as snapshots:

pytest --accept-diff

The snapshots are stored as JSON files in the __pytest_results__ folder, at the root of your project. Commit this folder: from now on, the test fails whenever its result changes.

When a test fails, open the differences in your IDE with the --ide option:

pytest --ide vscode

The supported IDEs are cursor, pycharm and vscode.

If the changes are expected, update the snapshots with pytest --accept-diff.

Documentation

Metadata

Release files for pytest-results 0.5.2.post0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-results 0.5.2.post0
File Size Uploaded Provenance Actions
pytest_results-0.5.2.post0.tar.gz 9.9 kB Without provenance Details for pytest_results-0.5.2.post0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-results 0.5.2.post0
File Interpreter ABI Platform Actions
pytest_results-0.5.2.post0-py3-none-any.whl Python 3 none any Details for pytest_results-0.5.2.post0-py3-none-any.whl

Total release size: 20.9 kB

Release files / pytest_results-0.5.2.post0.tar.gz

Download URL pytest_results-0.5.2.post0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2bda94c2c66d0683dba5670f470e1a5eaa4b9c8165b23be08d1e7ba9f16fab1
BLAKE2b-256 checksum
How to use checksums
3aa56e1349875c9501a807281c6f327c9e814d7a3196fc1e1ef05d39fe860cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytest_results-0.5.2.post0-py3-none-any.whl

Download URL pytest_results-0.5.2.post0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84675251b1dd38655a91bd52920949108c701b1cb9a4f2a4a6cdc438b1f2f582
BLAKE2b-256 checksum
How to use checksums
ba625a34b2e72a54b44373a511e77cb0d85657ee9dfaf7a8e1fb02c382ec8d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pytest-results 0.5.2.post0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page