From 720a5451b766ec492c5ca5508aa4d8148f5f5a49 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 7 Nov 2021 01:47:04 +0200 Subject: [PATCH] Fixed fixture --- tests/test_bot/test_bot_download_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_bot/test_bot_download_file.py b/tests/test_bot/test_bot_download_file.py index 75710fcc..195a06f7 100644 --- a/tests/test_bot/test_bot_download_file.py +++ b/tests/test_bot/test_bot_download_file.py @@ -21,7 +21,8 @@ async def bot_fixture(): _bot = Bot(TOKEN) _bot.get_file = get_file yield _bot - await _bot.session.close() + session = await _bot.get_session() + await session.close() @pytest.fixture