[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#855412: ITP: pytest-mpl -- Plugin to faciliate image comparison for Matplotlib figures in pytest



Package: wnpp
Severity: wishlist
Owner: Leo Singer <leo.singer@ligo.org>
X-Debbugs-CC: debian-astro-maintainers@lists.alioth.debian.org

* Package name    : pytest-mpl
 Version         : 0.7
 Upstream Author : Thomas Robitaille <thomas.robitaille@gmail.com>
* URL             : https://pypi.python.org/pypi/pytest-mpl
* License         : BSD
 Programming Lang: Python
 Description     : Plugin to faciliate image comparison for Matplotlib figures in pytest

From the PyPI package description:

> This is a plugin to faciliate image comparison for Matplotlib figures in
> pytest.
> 
> Matplotlib includes a number of test utilities and decorators, but these
> are geared towards the nose testing framework. Pytest-mpl makes it easy
> to compare figures produced by tests to reference images when using
> pytest.
> 
> For each figure to test, the reference image is substracted from the
> generated image, and the RMS of the residual is compared to a
> user-specified tolerance. If the residual is too large, the test will
> fail (this is implemented using helper functions from
> matplotlib.testing).

This package is used by some of the unit tests for python-astropy
that are currently being skipped. Adding this package will increase
the scope of the unit tests that get run for python-astropy.


Reply to: