Fix style errors

This commit is contained in:
Boger 2020-03-25 15:57:25 +03:00
parent 7db1572fd3
commit 23c632b37b
7 changed files with 8 additions and 14 deletions

View file

@ -55,9 +55,7 @@ class TestBaseBot:
with patch(
"aiogram.api.client.session.aiohttp.AiohttpSession.close", new_callable=CoroutineMock
) as mocked_close:
async with Bot("42:TEST", session=AiohttpSession()).context(
auto_close=close
) as bot:
async with Bot("42:TEST", session=AiohttpSession()).context(auto_close=close) as bot:
assert isinstance(bot, Bot)
if close:
mocked_close.assert_awaited()