Skip to content

Parametrized test#1

Merged
elejke merged 1 commit intoelejke:masterfrom
radarhere:autocontrast
Mar 23, 2021
Merged

Parametrized test#1
elejke merged 1 commit intoelejke:masterfrom
radarhere:autocontrast

Conversation

@radarhere
Copy link
Copy Markdown

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

Development

Successfully merging this pull request may close these issues.

2 participants