mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
AIOG-T-65 close_bot test added
This commit is contained in:
parent
84e302156a
commit
6a2911f73b
1 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,14 @@ async def test_log_out(bot: Bot, event_loop):
|
|||
assert result is True
|
||||
|
||||
|
||||
async def test_close_bot(bot: Bot, event_loop):
|
||||
""" close method test """
|
||||
|
||||
async with FakeTelegram(message_data=True, loop=event_loop):
|
||||
result = await bot.close_bot()
|
||||
assert result is True
|
||||
|
||||
|
||||
async def test_send_message(bot: Bot, event_loop):
|
||||
""" sendMessage method test """
|
||||
from .types.dataset import MESSAGE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue