From 5fe47da058564b72e5081a5658c054f55a5d85cd Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 23 Aug 2022 14:47:08 +0100 Subject: [PATCH] Await animator --- tests/test_animator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_animator.py b/tests/test_animator.py index 926949b27..159600d7a 100644 --- a/tests/test_animator.py +++ b/tests/test_animator.py @@ -243,7 +243,7 @@ def test_bound_animator(): assert animator._animations[(id(animate_test), "foo")] == expected -def test_animator_on_complete_callback_not_fired_before_duration_ends(): +async def test_animator_on_complete_callback_not_fired_before_duration_ends(): callback = Mock() animate_test = AnimateTest() animator = MockAnimator(Mock()) @@ -251,7 +251,7 @@ def test_animator_on_complete_callback_not_fired_before_duration_ends(): animator.animate(animate_test, "foo", 200, duration=10, on_complete=callback) animator._time = 9 - animator() + await animator() assert not callback.called