Skip to main content
pytest-Inomaly
===================================

[![Build Status](https://ci.digitaloctave.com/api/badges/oly/pytest-inomaly/status.svg)](https://ci.digitaloctave.com/oly/pytest-inomaly)

A simple image diff plugin for pytest currently provides two new methods, use full for testing image related code and making sure the results do not change unexpectedly.

- pytest.idiff - returns true or false
- pytest.idiff_variance - returns the difference between the two images


Requirements
------------
Requires scipy and pytest to calculate the differences.

- scipy
- pytest


Installation
------------

You can install "pytest-Inomaly" via `pip`_ from `PyPI`_::

$ pip install pytest-Inomaly


Usage
-----


Assert images are identical.

assert idiff(path_to_first_image, path_to_second_image) is True

Assert images are almost identical, allow some variation for anti aliasing or similar.

assert idiff(path_to_first_image, path_to_second_image, tolerance=0.1) is True

Same as the above two method but will return the difference as a value instead of true or false.

assert idiff_tolerance(path_to_first_image, path_to_second_image, tolerance=0.1) == 3.14


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-Inomaly" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

Metadata

Release files for pytest-Inomaly 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-Inomaly 0.2.5
File Size Uploaded Provenance Actions
pytest-Inomaly-0.2.5.tar.gz 3.8 kB Without provenance Details for pytest-Inomaly-0.2.5.tar.gz

Release files / pytest-Inomaly-0.2.5.tar.gz

Download URL pytest-Inomaly-0.2.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61732c0d91cb8a028fe533b9e3d522a801d7c9578e739fd89fa77a802753de86
BLAKE2b-256 checksum
How to use checksums
45d1a2c9e921be44e3d7fc8a62b2d0f1f9e50860b3923a53365a5094220ebf94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytest-Inomaly 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page