Housekeeping.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-24 18:46:37 +00:00
parent ad24349bb2
commit fa6bd44866
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added ### 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 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 ### Fixed

View File

@@ -120,7 +120,7 @@ async def test_reverse_animations() -> None:
await pilot.wait_for_animation() await pilot.wait_for_animation()
assert styles.background.rgb == (0, 0, 0) 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", "white", duration=0.01)
styles.animate("background", "black", duration=0.01) styles.animate("background", "black", duration=0.01)
await pilot.wait_for_animation() await pilot.wait_for_animation()