matplotlib / matplotlib/pytest-mpl
Use pytest's pytester plugin in the tests
- Dominant language
- Python
- Stars
- 272
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
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 has lots of nice features for checking the outcome.
https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#testing-plugins
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with tests/test_pytest_mpl.py and read pytest's pytester plugin documentation at the linked guide. Replace the temporary-file execution patterns with pytester-based tests while preserving the existing outcome checks; done means the test suite passes with equivalent coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100