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 See Build Status on Travis CI See Build Status on AppVeyor https://img.shields.io/readthedocs/pytest-regressions.svg https://img.shields.io/badge/code%20style-black-000000.svg

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 2.7 and Python 3.5+.

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

Uploaded Source

Built Distribution

pytest_regressions-1.0.6-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-regressions-1.0.6.tar.gz
  • Upload date:
  • Size: 76.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for pytest-regressions-1.0.6.tar.gz
Algorithm Hash digest
SHA256 14165dd7a452f0637083855f67aafe6afa61013a541efd2dedc98b7da5dd3970
MD5 52cf60a43ff9aa0a89f98f8da0e2dc5a
BLAKE2b-256 d6982a8962432970e4af2dd7e4eb162b97711cfee51bccc1e7b4a42aec8839ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_regressions-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for pytest_regressions-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 51aca72c6e75c5cfcf50ffbc234405b788afefecab1b3010dbe9a3e749df1eb3
MD5 7a9231e1932a3218a80372c8dc99c486
BLAKE2b-256 c1bc14c812a9794e5b8605e44e73dbdff8efc409f0f5d2c70897a58b6d96f9e2

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