mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed fixture
This commit is contained in:
parent
c00005f41a
commit
720a5451b7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue