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

Parametrized test tolerances #124

Open
QuLogic opened this issue Oct 9, 2021 · 1 comment
Open

Parametrized test tolerances #124

QuLogic opened this issue Oct 9, 2021 · 1 comment

Comments

@QuLogic
Copy link
Member

QuLogic commented Oct 9, 2021

Sometimes only one or two images need an increased tolerance, but we can only increase tolerance on the entire test set.

I'm not sure how best to indicate it. Maybe by using a marker on one of the parameters.

@ConorMacBride
Copy link
Member

I'm not sure I understand what you are trying to do. Tolerance is configured on a per test basis, so increasing the tolerance of specific tests should be supported:

@pytest.mark.mpl_image_compare(tolerance=20)
def test_plot():
    ...

Maybe you are referring to a specific project's pytest.mark.mpl_image_compare wrapper (example) which has a fixed tolerance for all tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants