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.6.0.tar.gz (116.2 kB view details)

Uploaded Source

Built Distribution

pytest_regressions-2.6.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_regressions-2.6.0.tar.gz.

File metadata

  • Download URL: pytest_regressions-2.6.0.tar.gz
  • Upload date:
  • Size: 116.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytest_regressions-2.6.0.tar.gz
Algorithm Hash digest
SHA256 e3dce521fac11199a2a91a1b8837974d708c7e8665b8c9668b3a721b556c8183
MD5 db177b560844f28feff68f8e130054ad
BLAKE2b-256 ba0578acfdf571ce4000af9d735530094b7a3276652f9c98e93feecd186c1b80

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_regressions-2.6.0.tar.gz:

Publisher: deploy.yml on ESSS/pytest-regressions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pytest_regressions-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4a4763415f765770449190097a99b3a8a6ebf20b24e6d90a32da6644e5d041
MD5 23f09ff09bc8a53666c191e0b7c57ac7
BLAKE2b-256 93b448edc97a835f0f9c8de5db0e1a4bc7e1ce1bb9050e269924c28f10ff0280

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_regressions-2.6.0-py3-none-any.whl:

Publisher: deploy.yml on ESSS/pytest-regressions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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