mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Updated tests now that alpha_only is keyword-only
This commit is contained in:
parent
044de40c93
commit
119a0dfb01
|
@ -45,11 +45,11 @@ def test_bbox():
|
|||
@pytest.mark.parametrize("mode", ("RGBA", "RGBa", "La", "LA", "PA"))
|
||||
def test_bbox_alpha_only_false(mode):
|
||||
im = Image.new(mode, (100, 100))
|
||||
assert im.getbbox(False) is None
|
||||
assert im.getbbox(alpha_only=False) is None
|
||||
|
||||
fill_color = [1] * Image.getmodebands(mode)
|
||||
fill_color[-1] = 0
|
||||
im.paste(tuple(fill_color), (25, 25, 75, 75))
|
||||
assert im.getbbox(False) == (25, 25, 75, 75)
|
||||
assert im.getbbox(alpha_only=False) == (25, 25, 75, 75)
|
||||
|
||||
assert im.getbbox() is None
|
||||
|
|
Loading…
Reference in New Issue
Block a user