Pytest-mpl

Latest version: v0.17.0

Safety actively analyzes 682532 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.17.0

<!-- Release notes generated using configuration in .github/release.yml at main -->
What's Changed

Fixes

* Improve Logging Configuration: don't modify root logger by theOehrly in https://github.com/matplotlib/pytest-mpl/pull/182
* Improve error reporting when test raises an exception by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/193
* MNT: Compat with pytest 8.1 by pllim in https://github.com/matplotlib/pytest-mpl/pull/219

Exciting New Features 🎉

* Added support for EPS, PDF, and SVG image comparison by astrofrog in https://github.com/matplotlib/pytest-mpl/pull/194
* Started implementing support for deterministic figure output by astrofrog in https://github.com/matplotlib/pytest-mpl/pull/196
* Add missing CLI and INI options for a consistent API by astrofrog in https://github.com/matplotlib/pytest-mpl/pull/181
* Avoid using `py.path` by eerovaher in https://github.com/matplotlib/pytest-mpl/pull/207
* Allow using `-p no:legacypath` with `pytest` >= 7 by eerovaher in https://github.com/matplotlib/pytest-mpl/pull/213

Other Changes

* Add initial Sphinx docs by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/174
* Add documentation on avoiding `PytestReturnNotNoneWarning` by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/185
* Add RTD config by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/195
* Migrate docs from `README.rst` to website by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/199
* Set deterministic to True for vector graphics and warn about change to True in future for PNG by astrofrog in https://github.com/matplotlib/pytest-mpl/pull/197

Infrastructure Changes

* Verify class-based testing configurations produce the expected results by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/175
* Update testing and CI for Matplotlib v3.6 by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/184
* Upgrade for tox 4 by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/191
* Upgrade CI package versions by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/215
* Test wheel with 3.11 until `python-dateutil` is updated for 3.12 by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/217
* Fix unclosed test files by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/222

New Contributors

* theOehrly made their first contribution in https://github.com/matplotlib/pytest-mpl/pull/182
* eerovaher made their first contribution in https://github.com/matplotlib/pytest-mpl/pull/207

**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.16.1...v0.17.0

0.16.1

<!-- Release notes generated using configuration in .github/release.yml at main -->
What's Changed

Fixes

- Fix tests which exit before returning a figure or use `unittest.TestCase` by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/171

Other Changes

- Rename default branch to `main` by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/169

**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.16.0...v0.16.1

0.16.0

Fixes

- Make summary log message about test results in general instead of failures by neutrinoceros in https://github.com/matplotlib/pytest-mpl/pull/148
- Add support for classes with pytest 7 by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/164
- Note that this change necessitated a minor breaking change for figure tests within classes only, and the following will need to be done:
- - Hash library test names will need to be regenerated/updated to include the class name.

- - If the undocumented `mpl-use-full-test-name` ini option is enabled, the the baseline images will need to be regenerated, or have their filename updated to include the class name.


Other Changes

- Improve parametrized test names in HTML summaries by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/165

Infrastructure Changes

- Pin tox environment `mpl35` to matplotlib 3.5.1 by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/162
- [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/matplotlib/pytest-mpl/pull/167
- Improve `tests/subtests` by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/163

**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.15.1...v0.16.0

0.15.1

Fixes

- Add test for image shape mismatch and fix bug by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/145

**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.15.0...v0.15.1

0.15.0

Features

- Remove Python 2 from package classifiers by dopplershift in https://github.com/matplotlib/pytest-mpl/pull/137
- Downloadable hash library in HTML summary by ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/138

Fixes

- No need to warn when falling back to other URL by pllim in https://github.com/matplotlib/pytest-mpl/pull/139
- Automatically update changelog in the repo after release by Cadair in https://github.com/matplotlib/pytest-mpl/pull/143

**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.14.0...v0.15.0

0.14

- Add `--mpl-results-always` flag which disables removing of test images for
- tests which pass. Test images are also stored and generated for hash tests
- when a baseline dir is also provided. [108]
-
- When generating a HTML summary page, the `--mpl-results-always` flag is
- automatically applied. [131]
-
- Add a `--mpl-generate-summary=json` option which saves a JSON summary of the
- image comparison results. [127]
-
- Add a significantly improved HTML summary page, and rename the old simple
- summary page to `basic-html`. [128]
-
- Various bugfixes, test improvements and documentation updates [134]
-

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.