Skip to content

Commit 658d78d

Browse files
committed
Fix some test cases using old compositing API
1 parent 945cd46 commit 658d78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_compositing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TestCompositing(util.ColorAsserts, unittest.TestCase):
1010
def test_disable_compose(self):
1111
"""Test that we can disable either blend or alpha compositing."""
1212

13-
c1 = Color('#07c7ed').set('alpha', 0.5).compose('#fc3d99', blend='multiply', operator=False, space="srgb")
13+
c1 = Color.layer([Color('#07c7ed').set('alpha', 0.5), '#fc3d99'], blend='multiply', operator=False, space="srgb")
1414
c2 = Color.layer([c1, '#fc3d99'], blend=False, space="srgb")
1515
self.assertColorEqual(
1616
Color.layer([Color('#07c7ed').set('alpha', 0.5), '#fc3d99'], blend='multiply', space="srgb"),
@@ -115,7 +115,7 @@ def test_compose_no_alpha(self):
115115
c2 = Color('yellow')
116116
c3 = Color.layer([c1, c2])
117117
self.assertTrue(c1 is not c3)
118-
self.assertEqual(c1.compose(c2), c1)
118+
self.assertEqual(Color.layer([c1, c2]), c1)
119119

120120
def test_compose_nan_alpha(self):
121121
"""Test layer logic with alpha as `NaN`."""

0 commit comments

Comments
 (0)