'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2020-11-08 21:30:43 +00:00
parent c6a43c89c4
commit 76507afd3c
5 changed files with 7 additions and 19 deletions

View file

@ -508,7 +508,7 @@ async def test_get_my_commands(bot: Bot, event_loop):
async with FakeTelegram(message_data=commands, loop=event_loop):
result = await bot.get_my_commands()
assert isinstance(result, list)
assert all([isinstance(command, types.BotCommand) for command in result])
assert all(isinstance(command, types.BotCommand) for command in result)
async def test_edit_message_text_by_bot(bot: Bot, event_loop):