diff --git a/anker/bot/sticker_storage.py b/anker/bot/sticker_storage.py index eabf9ab..87908f9 100644 --- a/anker/bot/sticker_storage.py +++ b/anker/bot/sticker_storage.py @@ -50,7 +50,8 @@ def get_sticker_set( bot: telebot.TeleBot, sticker_set_name: str ) -> telebot.types.StickerSet | None: try: - # A workaround an issue described here: https://github.com/eternnoir/pyTelegramBotAPI/issues/2212 + # A workaround an issue described here: + # https://github.com/eternnoir/pyTelegramBotAPI/issues/2212 is_workaround = True if is_workaround: result = telebot.apihelper.get_sticker_set(bot.token, sticker_set_name) diff --git a/tests/bot/test_message_processing.py b/tests/bot/test_message_processing.py index 04c6f2f..ad66962 100644 --- a/tests/bot/test_message_processing.py +++ b/tests/bot/test_message_processing.py @@ -47,7 +47,9 @@ def test_process_start( content_type="text/html", ) - with patch("telebot.apihelper._make_request") as mocked_make_handler: + with patch("telebot.apihelper._make_request") as mocked_make_handler, patch( + "anker.bot.sticker_storage.get_sticker_set" + ): process_start(mocked_telebot, incomming_message) mocked_make_handler.assert_called_once() mocked_telebot.reply_to.assert_called_once()