add sleep to test

This commit is contained in:
Will McGugan
2022-11-12 12:05:59 +00:00
parent b752ab5a04
commit 949745a08a
2 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ async def test_animate_height() -> None:
assert static.size.height == 1
static.styles.animate("height", 100, duration=0.5, easing="linear")
start = time()
# Wait for half the animation
await pilot.pause(0.25)
# Check we reached the half way point