From 6cc769ce4f22234dadd021f7f46228242b99a2d5 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Sun, 5 Apr 2020 19:13:33 +0300 Subject: [PATCH] #289 Added setStickerSetThumb test --- tests/test_bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_bot.py b/tests/test_bot.py index 70f8eb89..92a2bd0f 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -516,3 +516,12 @@ async def test_edit_message_text_by_user(bot: Bot, event_loop): result = await bot.edit_message_text(text=msg.text, chat_id=msg.chat.id, message_id=msg.message_id) assert isinstance(result, bool) assert result is True + + +async def test_set_sticker_set_thumb(bot: Bot, event_loop): + """ setStickerSetThumb method test """ + + async with FakeTelegram(message_data=True, loop=event_loop): + result = await bot.set_sticker_set_thumb(name='test', user_id=123456789, thumb='file_id') + assert isinstance(result, bool) + assert result is True