Skip to content

Use pytest's pytester plugin in the tests #173

Open
@ConorMacBride

Description

@ConorMacBride

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructurePRs related to the package and tests etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions