Merge pull request #1695 from Textualize/rodrigogiraoserrao-patch-1

Update test_animation.py
This commit is contained in:
Will McGugan
2023-01-30 19:04:41 +01:00
committed by GitHub

View File

@@ -153,8 +153,8 @@ async def test_schedule_reverse_animations() -> None:
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.
styles.animate("background", "white", delay=0.01, duration=0.01)
await pilot.pause(0.005)
styles.animate("background", "black", delay=0.01, duration=0.01)
styles.animate("background", "white", delay=0.05, duration=0.01)
await pilot.pause()
styles.animate("background", "black", delay=0.05, duration=0.01)
await pilot.wait_for_scheduled_animations()
assert styles.background.rgb == (0, 0, 0)