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 #1

Merged
merged 1 commit into from Mar 23, 2021
Merged

Parametrized test #1

merged 1 commit into from Mar 23, 2021

Conversation

radarhere
Copy link

Helps python-pillow#5350

Makes use of https://docs.pytest.org/en/stable/parametrize.html, to effectively run the test four times with different inputs, instead of running one internal function four times.

Or see https://github.com/python-pillow/Pillow/blob/aa35f6b572c3491976e2336b28f481dad0a2a353/Tests/test_imagedraw.py#L709-L722 for a use of it in Pillow

@elejke elejke merged commit d90ab90 into elejke:master Mar 23, 2021
@radarhere radarhere deleted the autocontrast branch March 23, 2021 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants