Merge pull request #9 from radarhere/test_open

Removed test_open
This commit is contained in:
REDxEYE 2023-10-30 14:49:47 +03:00 committed by GitHub
commit 2f7caad37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 861 B

After

Width:  |  Height:  |  Size: 861 B

View File

@ -350,25 +350,10 @@ def test_save_unsupported_mode(tmp_path):
im.save(out)
@pytest.mark.parametrize(
("mode", "test_file"),
(
("L", "Tests/images/mode-l.dds"),
("LA", "Tests/images/mode-la.dds"),
("RGB", "Tests/images/mode-rgb.dds"),
("RGBA", "Tests/images/mode-rgba.dds"),
),
)
def test_open(mode, test_file):
with Image.open(test_file) as im:
assert im.mode == mode
assert_image_equal_tofile(im, test_file.replace(".dds", ".png"))
def test_open_rgb8():
with Image.open("Tests/images/rgb8.dds") as im:
assert im.mode == "L"
assert_image_equal_tofile(im, "Tests/images/mode-l.png")
assert_image_equal_tofile(im, "Tests/images/rgb8.png")
@pytest.mark.parametrize(