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

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

Uploaded Source

Built Distribution

pytest_regressions-2.1.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-regressions-2.1.1.tar.gz
  • Upload date:
  • Size: 97.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for pytest-regressions-2.1.1.tar.gz
Algorithm Hash digest
SHA256 a1580fe4011c70106070c2ede7ada972a4b814cca90d49459f3841bf81c2a39d
MD5 0fcf1eeb5cd7a8e8f8fec7636881ab64
BLAKE2b-256 093ff1c520a51ffec9c33d864aed50c52818aeec74918e9819200e213dc9dfbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_regressions-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for pytest_regressions-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8fc1874b0af7fed21d84fb49acbf6b27b8e0a2bb1a4ae57b00f37640b9f5dde
MD5 7515cb4ba10f1d0f2b6c920ad10a2237
BLAKE2b-256 295907080d72be1185c577f99ef4fb6d51b277527e22f1793bf17d645df54513

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