From 8e81e0dd0e612786d1f214ed3d354a31f7684d02 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 16 Feb 2020 13:44:34 +1100 Subject: [PATCH] Restored test --- Tests/test_imagedraw.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index bd8c06560..46ce0fa7d 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -264,6 +264,19 @@ def test_ellipse2(): helper_ellipse(mode, BBOX2) +def test_ellipse_translucent(): + # Arrange + im = Image.new("RGB", (W, H)) + draw = ImageDraw.Draw(im, "RGBA") + + # Act + draw.ellipse(BBOX1, fill=(0, 255, 0, 127)) + + # Assert + expected = Image.open("Tests/images/imagedraw_ellipse_translucent.png") + assert_image_similar(im, expected, 1) + + def test_ellipse_edge(): # Arrange im = Image.new("RGB", (W, H))