Skip to main content

Easy to use fixtures to write regression tests.

Project description

PyPI version https://img.shields.io/conda/vn/conda-forge/pytest-regressions.svg Python versions https://github.com/ESSS/pytest-regressions/workflows/build/badge.svg https://img.shields.io/readthedocs/pytest-regressions.svg https://img.shields.io/badge/code%20style-black-000000.svg pre-commit.ci status

Fixtures to write regression tests.

Features

This plugin makes it simple to test general data, images, files, and numeric tables by saving expected data in a data directory (courtesy of pytest-datadir) that can be used to verify that future runs produce the same data.

See the docs for examples and API usage.

Requirements

  • pytest>=3.5

  • Python 3.6+.

Installation

You can install “pytest-regressions” via pip from PyPI:

$ pip install pytest-regressions

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, “pytest-regressions” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-regressions-2.5.0.tar.gz (113.6 kB view details)

Uploaded Source

Built Distribution

pytest_regressions-2.5.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest-regressions-2.5.0.tar.gz.

File metadata

  • Download URL: pytest-regressions-2.5.0.tar.gz
  • Upload date:
  • Size: 113.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pytest-regressions-2.5.0.tar.gz
Algorithm Hash digest
SHA256 818c7884c1cff3babf89eebb02cbc27b307856b1985427c24d52cb812a106fd9
MD5 755389c671a1905d31fa327b836bd07b
BLAKE2b-256 33c62b6088711d0a9d87b82a7e6ac84c6cb59aab3bf37778bb25645590a5729c

See more details on using hashes here.

File details

Details for the file pytest_regressions-2.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_regressions-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4e5c4037325fdb0825bc1fdcb75e17e03adf3407049f0cb704bb996d496255
MD5 58d195dcf192f4eabdf54a70b30f9135
BLAKE2b-256 0c93086651842707118284e93387355efc5cbbce28bace9265b450d67be55fd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page