Skip to content

Commit 3f7e431

Browse files
committed
Test lottie_animation_property_override() properly
1 parent ac22534 commit 3f7e431

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_all.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ def test_lottie_animation_render_async():
111111

112112

113113
def test_lottie_animation_property_override():
114-
with LottieAnimation.from_file(json_file) as anim:
114+
with LottieAnimation.from_tgs(tgs_file) as anim:
115115
anim.lottie_animation_property_override(
116116
LottieAnimationProperty.LOTTIE_ANIMATION_PROPERTY_FILLCOLOR,
117-
"**.**.**",
117+
"Shape Layer 3.Fill 1",
118118
ctypes.c_double(1.0),
119119
ctypes.c_double(0.0),
120120
ctypes.c_double(0.0),
121121
)
122+
frame = anim.render_pillow_frame(0)
123+
assert frame.getpixel((75,380)) == (255, 0, 0, 255) # type: ignore
122124

123125

124126
def test_lottie_animation_get_markerlist():

0 commit comments

Comments
 (0)