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

Uploaded Source

Built Distribution

pytest_regressions-2.3.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-regressions-2.3.1.tar.gz
  • Upload date:
  • Size: 109.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for pytest-regressions-2.3.1.tar.gz
Algorithm Hash digest
SHA256 b3ec4cdb34e8f627606275d8b834c65e60e1a3073e326bb3727a427273d0221d
MD5 035d936b558f84db3ba280a67f68e62f
BLAKE2b-256 365f5961ce7e02c115d8e9f4db6a0a7db644064dc0080ce4447a8d7738a72e95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_regressions-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for pytest_regressions-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd350a942fb2de1b541ac750d6c2422854e54762256956ad6ed769a71477d35
MD5 4a5ae62363894180565b6c03b49d8c3d
BLAKE2b-256 a3298b42f1bc93b7cca3c431a972537fdc0539fa8c25b34ef9131e307197d532

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