mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Use existing image
This commit is contained in:
parent
985e4fbe40
commit
58509a48a8
BIN
Tests/images/blp/blp1_jpeg.png
Normal file
BIN
Tests/images/blp/blp1_jpeg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
@ -5,6 +5,11 @@ from PIL import Image
|
|||
from .helper import assert_image_equal_tofile
|
||||
|
||||
|
||||
def test_load_blp1():
|
||||
with Image.open("Tests/images/blp/blp1_jpeg.blp") as im:
|
||||
assert_image_equal_tofile(im, "Tests/images/blp/blp1_jpeg.png")
|
||||
|
||||
|
||||
def test_load_blp2_raw():
|
||||
with Image.open("Tests/images/blp/blp2_raw.blp") as im:
|
||||
assert_image_equal_tofile(im, "Tests/images/blp/blp2_raw.png")
|
||||
|
@ -20,13 +25,6 @@ def test_load_blp2_dxt1a():
|
|||
assert_image_equal_tofile(im, "Tests/images/blp/blp2_dxt1a.png")
|
||||
|
||||
|
||||
def test_load_blp1():
|
||||
with Image.open("Tests/images/blp/war3mapMap.blp") as im:
|
||||
png = im.copy()
|
||||
png.save(fp="Tests/images/blp/war3mapMap.png")
|
||||
assert_image_equal_tofile(im, "Tests/images/blp/war3mapMap.png")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"test_file",
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue
Block a user