Skip to content

Recommended way of testing app using Pillow #8945

Answered by radarhere
js-compilatrum asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. As you have probably gathered, our Tests directory uses pytest. It is for testing that Pillow behaves as expected. You can read more about how to run our test suite at https://github.com/python-pillow/Pillow/blob/main/Tests/README.rst

Can you share any advices to construct app correctly?

You might be interested in a discussion where another user has shared their application - #8561

My first thought is create display image as matrix which is 16-color grayscale and using 1/0 match drawed part and based on this create all tests suite using methid get_pixel, but it seems complicated and it is needed extra boilerplate.

It sounds like you're describing

from PIL import Image
im = Image.new(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants