Skip to main content

No project description provided

Project description

PyPi Build Status Documentation Status Codecov Requirements Status PyUP PyPi Python versions License

pytest-image-diff

Installation

pip install pytest-image-diff

or from git

pip install -e git+https://githib.com/Apkawa/pytest-image-diff.git@master#egg=pytest-image-diff

Python>=3.5

Usage

from PIL import Image


def test_compare(image_diff):
    image: Image or str or bytes = Image.new()
    image2: Image or str or bytes = '/path/to/image.jpeg'
    image_diff(image, image2)

def test_regression(image_regression):
    image: Image or str or bytes = Image.new()
    image_regression(image)

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-image-diff-0.0.3.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

pytest_image_diff-0.0.3-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 Python 3

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