File: test_uploader.py

package info (click to toggle)
pillow 12.1.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 72,640 kB
  • sloc: python: 49,768; ansic: 38,750; makefile: 302; sh: 169; javascript: 85
file content (15 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)