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

Uploaded Source

Built Distribution

pytest_regressions-2.4.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest-regressions-2.4.2.tar.gz
Algorithm Hash digest
SHA256 eab89e7ba4aa339bdfe07b31047e8e6a70b1e7846e74a8bbfc31a588d01e7303
MD5 55be18116563d357348a984c675cb12c
BLAKE2b-256 b55000bcd3e966d03c75fab7c4a136c1140459f1c5648599aff6d5be43bce353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_regressions-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b47f92c39d5dd2faa90716ee74c584d705c08e14f435a947f67706c4e5b8ef9a
MD5 bc5a459f4614f4dcfb246d0b820bc766
BLAKE2b-256 9c786b17b602a199c3f1141d84c98c910b5086b7ffc8402f625ac4ee6d44a086

See more details on using hashes here.

Supported by

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