[Debian-astro-maintainers] Bug#855412: ITP: pytest-mpl -- Plugin to faciliate image comparison for Matplotlib figures in pytest
Leo Singer
leo.singer at ligo.org
Fri Feb 17 16:57:16 UTC 2017
Package: wnpp
Severity: wishlist
Owner: Leo Singer <leo.singer at ligo.org>
X-Debbugs-CC: debian-astro-maintainers at lists.alioth.debian.org
* Package name : pytest-mpl
Version : 0.7
Upstream Author : Thomas Robitaille <thomas.robitaille at 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.
More information about the Debian-astro-maintainers
mailing list