From 9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 18 Jun 2019 16:57:29 +0200 Subject: Re-inject behavior scripts on site reload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13. Event handler’s push() is async now. --- crocoite/test_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crocoite/test_controller.py') diff --git a/crocoite/test_controller.py b/crocoite/test_controller.py index fa478a1..7e79dbe 100644 --- a/crocoite/test_controller.py +++ b/crocoite/test_controller.py @@ -130,11 +130,11 @@ async def test_idle_state_tracker (): assert idle._idle # idle change - idle.push (PageIdle (False)) + await idle.push (PageIdle (False)) assert not idle._idle # nothing happens for other objects - idle.push ({}) + await idle.push ({}) assert not idle._idle # no state change -> wait does not return @@ -144,7 +144,7 @@ async def test_idle_state_tracker (): # wait at least timeout delta = 0.2 timeout = 1 - idle.push (PageIdle (True)) + await idle.push (PageIdle (True)) assert idle._idle start = loop.time () await idle.wait (timeout) -- cgit v1.2.3