mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Fix style errors
This commit is contained in:
parent
7db1572fd3
commit
23c632b37b
7 changed files with 8 additions and 14 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class CustomSession(BaseSession):
|
|||
yield b"\f" * 10
|
||||
|
||||
|
||||
class TestBaseSession():
|
||||
class TestBaseSession:
|
||||
def test_init_api(self):
|
||||
session = CustomSession()
|
||||
assert session.api == PRODUCTION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue