Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 3, 2022
1 parent 3ee6e4c commit 32ebc56
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Tests/test_file_ppm.py
Expand Up @@ -20,18 +20,15 @@ def test_sanity():
assert im.get_format_mimetype() == "image/x-portable-pixmap"


@pytest.mark.parametrize(
"depth",
("9", "10", "12", "14")
)
@pytest.mark.parametrize("depth", ("9", "10", "12", "14"))
def test_less_than_16bit_pgm(depth):
with Image.open("Tests/images/"+depth+"_bit_binary.pgm") as im:
with Image.open("Tests/images/" + depth + "_bit_binary.pgm") as im:
im.load()
assert im.mode == "I"
assert im.size == (128, 128)
assert im.get_format_mimetype() == "image/x-portable-graymap"

assert_image_equal_tofile(im, "Tests/images/"+depth+"_bit_binary_pgm.png")
assert_image_equal_tofile(im, "Tests/images/" + depth + "_bit_binary_pgm.png")


def test_16bit_pgm():
Expand Down

0 comments on commit 32ebc56

Please sign in to comment.