Skip to content

Commit 16d82c2

Browse files
committed
Improved coverage
1 parent 389ad11 commit 16d82c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tests/test_imagefont.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ def test_default_font():
463463
assert_image_equal_tofile(im, "Tests/images/default_font.png")
464464

465465

466+
@pytest.mark.parametrize("mode", (None, "1", "RGBA"))
467+
def test_getbbox(font, mode):
468+
assert (0, 4, 12, 16) == font.getbbox("A", mode)
469+
470+
466471
def test_getbbox_empty(font):
467472
# issue #2614, should not crash.
468473
assert (0, 0, 0, 0) == font.getbbox("")

0 commit comments

Comments
 (0)