From 0bd7fc2c7e7a4e9cb9976428a6345b57ff091a4a Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 22 Feb 2020 23:12:42 +0200 Subject: [PATCH] Fix async test for py3.7 --- tests/test_dispatcher/test_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dispatcher/test_dispatcher.py b/tests/test_dispatcher/test_dispatcher.py index 9d9f8f2f..ae4a7947 100644 --- a/tests/test_dispatcher/test_dispatcher.py +++ b/tests/test_dispatcher/test_dispatcher.py @@ -260,7 +260,7 @@ class TestDispatcher: response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=1) assert response is None await asyncio.sleep(1) - assert mocked_silent_call_request.awaited() + mocked_silent_call_request.assert_awaited() @pytest.mark.asyncio async def test_feed_webhook_update_fast_process_error(self, bot: MockedBot, caplog):