Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pytest's pytester plugin in the tests #173

Open
ConorMacBride opened this issue Jun 29, 2022 · 0 comments
Open

Use pytest's pytester plugin in the tests #173

ConorMacBride opened this issue Jun 29, 2022 · 0 comments
Labels
infrastructure PRs related to the package and tests etc

Comments

@ConorMacBride
Copy link
Member

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

@ConorMacBride ConorMacBride added the infrastructure PRs related to the package and tests etc label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure PRs related to the package and tests etc
Projects
None yet
Development

No branches or pull requests

1 participant