mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Create aiohttp session inside async function
This commit is contained in:
parent
2d0fabbfb8
commit
b7a7e20750
4 changed files with 21 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ async def bot_fixture():
|
|||
""" Bot fixture """
|
||||
_bot = Bot(TOKEN)
|
||||
yield _bot
|
||||
await _bot.session.close()
|
||||
await (await _bot.get_session()).close()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue