Fixed fixture

This commit is contained in:
Alex Root Junior 2021-11-07 01:47:04 +02:00
parent c00005f41a
commit 720a5451b7

View file

@ -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