Allow Input of Type `Sticker` for Several Methods by Bibo-Joshi · Pull Request #4616 · python-telegram-bot/python-telegram-bot
❌ 3 Tests Failed:
| Tests completed | Failed | Passed | Skipped |
|---|---|---|---|
| 6379 | 3 | 6376 | 454 |
View the top 3 failed tests by shortest run time
tests._files.test_animation.TestAnimationWithoutRequest::test_expected_valuesStack Traces | 0.003s run time
self = <tests._files.test_animation.TestAnimationWithoutRequest object at 0x107b02590> animation = Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATM7i2dxnXsq1A-KJOBQ4X2sh98-X_k0AALgGQACToOIU1TznnOKN-3tAQAHcw...LgGQACToOIU1TznnOKN-3tAQAHcwADNgQ', file_size=2744, file_unique_id='AQAD4BkAAk6DiFN4', height=50, width=50), width=640) def test_expected_values(self, animation): > assert animation.mime_type == self.mime_type E AssertionError: assert 'image/gif' == 'video/mp4' E E - video/mp4 E + image/gif tests/_files/test_animation.py:69: AssertionError
tests._files.test_animation.TestAnimationWithRequest::test_send_animation_url_fileStack Traces | 0.202s run time
self = <tests._files.test_animation.TestAnimationWithRequest object at 0x107b48490> bot = PytestExtBot[token=691423554:AAF8WkjCZbnHqP_i6GhTYirFElZrGaYOhX0] chat_id = '675666224' animation = Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATM7i2dxnXsq1A-KJOBQ4X2sh98-X_k0AALgGQACToOIU1TznnOKN-3tAQAHcw...LgGQACToOIU1TznnOKN-3tAQAHcwADNgQ', file_size=2744, file_unique_id='AQAD4BkAAk6DiFN4', height=50, width=50), width=640) async def test_send_animation_url_file(self, bot, chat_id, animation): message = await bot.send_animation( chat_id=chat_id, animation=self.animation_file_url, caption=self.caption ) assert message.caption == self.caption assert isinstance(message.animation, Animation) assert isinstance(message.animation.file_id, str) assert isinstance(message.animation.file_unique_id, str) assert message.animation.file_id assert message.animation.file_unique_id > assert message.animation.duration == animation.duration E AssertionError: assert 1 == 0 E + where 1 = Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', 'file_unique_id': 'AQADNwEAAqrMPVNy', 'file_size': 4451, 'width': 320, 'height': 180}}, duration=1, file_id='CgACAgQAAxkDAAEysExnULOjJzHOh3gdlIGNDqP3tSzhwAACNwEAAqrMPVNnrtyI99Ww1zYE', file_name='game.gif.mp4', file_size=4127, file_unique_id='AgADNwEAAqrMPVM', height=180, mime_type='video/mp4', thumbnail=PhotoSize(file_id='AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', file_size=4451, file_unique_id='AQADNwEAAqrMPVNy', height=180, width=320), width=320).duration E + where Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', 'file_unique_id': 'AQADNwEAAqrMPVNy', 'file_size': 4451, 'width': 320, 'height': 180}}, duration=1, file_id='CgACAgQAAxkDAAEysExnULOjJzHOh3gdlIGNDqP3tSzhwAACNwEAAqrMPVNnrtyI99Ww1zYE', file_name='game.gif.mp4', file_size=4127, file_unique_id='AgADNwEAAqrMPVM', height=180, mime_type='video/mp4', thumbnail=PhotoSize(file_id='AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', file_size=4451, file_unique_id='AQADNwEAAqrMPVNy', height=180, width=320), width=320) = Message(animation=Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', 'file_unique_id': 'AQADNwEAAqrMPVNy', 'file_size': 4451, 'width': 320, 'height': 180}}, duration=1, file_id='CgACAgQAAxkDAAEysExnULOjJzHOh3gdlIGNDqP3tSzhwAACNwEAAqrMPVNnrtyI99Ww1zYE', file_name='game.gif.mp4', file_size=4127, file_unique_id='AgADNwEAAqrMPVM', height=180, mime_type='video/mp4', thumbnail=PhotoSize(file_id='AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', file_size=4451, file_unique_id='AQADNwEAAqrMPVNy', height=180, width=320), width=320), caption='Test *animation*', channel_chat_created=False, chat=Chat(first_name='PTB', id=675666224, last_name='Test user', type=<ChatType.PRIVATE>), date=datetime.datetime(2024, 12, 29, 19, 5, 51, tzinfo=<UTC>), delete_chat_photo=False, document=Document(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', 'file_unique_id': 'AQADNwEAAqrMPVNy', 'file_size': 4451, 'width': 320, 'height': 180}}, file_id='CgACAgQAAxkDAAEysExnULOjJzHOh3gdlIGNDqP3tSzhwAACNwEAAqrMPVNnrtyI99Ww1zYE', file_name='game.gif.mp4', file_size=4127, file_unique_id='AgADNwEAAqrMPVM', mime_type='video/mp4', thumbnail=PhotoSize(file_id='AAMCBAADGQMAATKwTGdQs6MnMc6HeB2UgY0Oo_e1LOHAAAI3AQACqsw9U2eu3Ij31bDXAQAHbQADNgQ', file_size=4451, file_unique_id='AQADNwEAAqrMPVNy', height=180, width=320)), from_user=User(first_name='PTB tests on Travis using PyPy 2.7', id=691423554, is_bot=True, username='ptb_travis_pypy_27_bot'), group_chat_created=False, message_id=3357588, supergroup_chat_created=False).animation E + and 0 = Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATM7i2dxnXsq1A-KJOBQ4X2sh98-X_k0AALgGQACToOIU1TznnOKN-3tAQAHcwADNgQ', 'file_unique_id': 'AQAD4BkAAk6DiFN4', 'file_size': 2744, 'width': 50, 'height': 50}}, duration=0, file_id='CgACAgQAAxkDAAEzO4tncZ17KtQPiiTgUOF9rIffPl_5NAAC4BkAAk6DiFNU855zijft7TYE', file_name='game.gif', file_size=36535, file_unique_id='AgAD4BkAAk6DiFM', height=360, mime_type='image/gif', thumbnail=PhotoSize(file_id='AAMCBAADGQMAATM7i2dxnXsq1A-KJOBQ4X2sh98-X_k0AALgGQACToOIU1TznnOKN-3tAQAHcwADNgQ', file_size=2744, file_unique_id='AQAD4BkAAk6DiFN4', height=50, width=50), width=640).duration tests/_files/test_animation.py:268: AssertionError
tests._files.test_animation.TestAnimationWithRequest::test_send_all_argsStack Traces | 0.634s run time
self = <tests._files.test_animation.TestAnimationWithRequest object at 0x107b03fa0> bot = PytestExtBot[token=691423554:AAF8WkjCZbnHqP_i6GhTYirFElZrGaYOhX0] chat_id = '675666224' animation_file = <_io.BufferedReader name='.../tests/data/game.gif'> animation = Animation(api_kwargs={'thumb': {'file_id': 'AAMCBAADGQMAATM7i2dxnXsq1A-KJOBQ4X2sh98-X_k0AALgGQACToOIU1TznnOKN-3tAQAHcw...LgGQACToOIU1TznnOKN-3tAQAHcwADNgQ', file_size=2744, file_unique_id='AQAD4BkAAk6DiFN4', height=50, width=50), width=640) thumb_file = <_io.BufferedReader name='.../tests/data/thumb.jpg'> async def test_send_all_args(self, bot, chat_id, animation_file, animation, thumb_file): message = await bot.send_animation( chat_id, animation_file, duration=self.duration, width=self.width, height=self.height, caption=self.caption, parse_mode="Markdown", disable_notification=False, protect_content=True, thumbnail=thumb_file, has_spoiler=True, show_caption_above_media=True, ) assert isinstance(message.animation, Animation) assert isinstance(message.animation.file_id, str) assert isinstance(message.animation.file_unique_id, str) assert message.animation.file_id assert message.animation.file_unique_id > assert message.animation.file_name == animation.file_name E AssertionError: assert 'game.gif.mp4' == 'game.gif' E E - game.gif E + game.gif.mp4 E ? ++++ tests/_files/test_animation.py:234: AssertionError
To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!