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

Uploaded Source

Built Distribution

pytest_regressions-1.0.4-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-regressions-1.0.4.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.3

File hashes

Hashes for pytest-regressions-1.0.4.tar.gz
Algorithm Hash digest
SHA256 87da9e5c1c4182c07fd3957b393ff00dc4f155a11649074414eeceeca5200d30
MD5 d51daccc7699d3ae61b5670c4d7cd5bf
BLAKE2b-256 5c787ebd6753875ebf62e63b4c4961c6a7acc6384f58d84be8bcbc28feea8e21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_regressions-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.3

File hashes

Hashes for pytest_regressions-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3c54b11e0a30d6a42f195f57f9a54f674d36c6207d259984cebb3a359ce26d
MD5 0b0fbf02809607b6e7c980e43c4fb9d2
BLAKE2b-256 9a2e7e087ed49d13e0db40d602ab00c5111ab3c7456d07b23f45df80908839fb

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