AIOG-T-65 close_bot test added

This commit is contained in:
Oleg A 2020-11-05 14:33:16 +03:00
parent 84e302156a
commit 6a2911f73b

View file

@ -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