mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
16 lines
396 B
Python
16 lines
396 B
Python
from __future__ import annotations
|
|
|
|
from .helper import assert_image_equal, assert_image_similar, hopper
|
|
|
|
|
|
def check_upload_equal() -> None:
|
|
result = hopper("P").convert("RGB")
|
|
target = hopper("RGB")
|
|
assert_image_equal(result, target)
|
|
|
|
|
|
def check_upload_similar() -> None:
|
|
result = hopper("P").convert("RGB")
|
|
target = hopper("RGB")
|
|
assert_image_similar(result, target, 0)
|