pytest-mpl icon indicating copy to clipboard operation
pytest-mpl copied to clipboard

A pytest plugin to facilitate image comparison for Matplotlib figures

Results 45 pytest-mpl issues
Sort by recently updated
recently updated
newest added

Within the `plugin.ImageComparison.compare_image_to_hash_library` method, should it not be the case that the `mpl_image_compare` marker `hash_library` kwarg option **should have precedence** over the `--mpl-hash-library` CLI argument? https://github.com/matplotlib/pytest-mpl/blob/e3876180847c2d04aeda1982372074998a7f8716/pytest_mpl/plugin.py#L520-L521 At the moment this...

A test from #179 was showing: ``` ValueError: The 'pytest_mpl.summary.html' package was not installed in a way that PackageLoader understands. ``` The update in this PR might fix that as...

Hi `matplotlib/pytest-mpl`! This is a one-off automatically generated pull request from LGTM.com :robot:. You might have heard that we’ve integrated LGTM’s underlying CodeQL analysis engine natively into GitHub. The result...

This PR addresses issue #152, by ensuring that a default `format='png'` is injected to the `savefig` kwargs when generating a hash. Closes #152

I'm getting CI/CD fails on windows vs linux, and I suspect it's related to the text renderer, as described here: https://github.com/matplotlib/pytest-mpl#removing-text . When I added this option, they still seem...

I have some tests for figures which use widgets to update the figure. It would be really helpful if I could yield from the test with a figure and then...

When I run or save a modified README code in Jupyter, I get a different image than the generated baseline. Example code run in a Jupyter cell: ```python #%%file test.py...

There's lots of tests in `tests/test_pytest_mpl.py` which write test code to a temp file, run it, and check the result. Pytest's builtin pytester plugin is designed for doing this and...

infrastructure

Some options are available only through the decorator (e.g. the style), while some are accessible as command-line options and one (the results dir) is also an ini option. We should...

enhancement
help wanted

For the current workflow, if there are hash library test failures for a `pytest` session, then these are easily discoverable thanks to the rich loveliness of the `html` figure comparison....