From fa6bd4486692bfafef322eded276e34f9e4d4087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Tue, 24 Jan 2023 18:46:37 +0000 Subject: [PATCH] Housekeeping. --- CHANGELOG.md | 1 + tests/test_animation.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db72150e0..d23f4705f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added the coroutines `Animator.wait_for_fully_idle` and `pilot.wait_for_scheduled_animations` that allow waiting for all current and scheduled animations https://github.com/Textualize/textual/issues/1658 +- Added the method `Animator.is_being_animated` that checks if an attribute of an object is being animated or is scheduled for animation ### Fixed diff --git a/tests/test_animation.py b/tests/test_animation.py index 14d57f6fc..eea935a33 100644 --- a/tests/test_animation.py +++ b/tests/test_animation.py @@ -120,7 +120,7 @@ async def test_reverse_animations() -> None: await pilot.wait_for_animation() assert styles.background.rgb == (0, 0, 0) - # Now, the actual test is to make sure we go back to black if scheduling both at once. + # Now, the actual test is to make sure we go back to black if creating both at once. styles.animate("background", "white", duration=0.01) styles.animate("background", "black", duration=0.01) await pilot.wait_for_animation()