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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-regressions-2.0.2.tar.gz
  • Upload date:
  • Size: 78.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.1

File hashes

Hashes for pytest-regressions-2.0.2.tar.gz
Algorithm Hash digest
SHA256 9cb628e6b6e71ba3d39d4bb230000e6e99a6cce7e053c65d1c23009607434733
MD5 c00d19de9b1af99a3eebf6f64121757b
BLAKE2b-256 f8dc18cb743cb378b8b3ce2b4fe6ab24101987584b1ed10b4a69d8497f236a9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_regressions-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.1

File hashes

Hashes for pytest_regressions-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdee6fdb13e340c8789e8b7c0a0e2248bc6dc7688426f9aee55e242e8a590075
MD5 6861d4dddd5e38bff6ed0e90b104a90d
BLAKE2b-256 8016a02ba63a21c5be4505471376bd6d46f51893c8596eb1c365f4df63f89f17

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