From d2232d127dc24b87105ebf42924ea609d66b9ae3 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Thu, 5 Apr 2018 23:23:31 +0300 Subject: [PATCH] Small changes in tests --- tests/test_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_bot.py b/tests/test_bot.py index 02a393ac..c3a29687 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -218,7 +218,8 @@ async def test_stop_message_live_location(bot: Bot, event_loop): # stopping user's message async with FakeTelegram(message_dict=True, loop=event_loop): result = await bot.stop_message_live_location(chat_id=msg.chat.id, message_id=msg.message_id) - assert isinstance(result, bool) and result is True + assert isinstance(result, bool) + assert result is True @pytest.mark.asyncio @@ -445,6 +446,7 @@ async def test_get_chat_administrators(bot: Bot, event_loop): async with FakeTelegram(message_dict=[CHAT_MEMBER, CHAT_MEMBER], loop=event_loop): result = await bot.get_chat_administrators(chat_id=chat.id) assert result[0] == member + assert len(result) == 2 @pytest.mark.asyncio