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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_image_diff-0.0.5-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-image-diff-0.0.5.tar.gz.

File metadata

  • Download URL: pytest-image-diff-0.0.5.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pytest-image-diff-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e145f1ab6df936f40051476a98b42d68470ad35c731e83b0b06ddf359fdd97a1
MD5 076d44df8ba72eeec49b025f123baf84
BLAKE2b-256 711b34b86e0a63a3f51acabf35eecb60e6c262c2573520c6bc7986984c07629d

See more details on using hashes here.

File details

Details for the file pytest_image_diff-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_image_diff-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pytest_image_diff-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75ba7d40a794bf5d243ef7a0023fce436c8336dad68ed68752745d4189cb85c8
MD5 9992556d2802c395b4747b5b7242b620
BLAKE2b-256 d4d11ac3b41c8fbbdd8cea672a7826c4b09aaf5a1634a78fc4b7abb04062a109

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page