diff --git a/tests/test_animation.py b/tests/test_animation.py index b2bd915bc1b..3f7c6c85149 100644 --- a/tests/test_animation.py +++ b/tests/test_animation.py @@ -58,9 +58,9 @@ class TestAnimation: # animation_file_url = 'https://python-telegram-bot.org/static/testfiles/game.gif' # Shortened link, the above one is cached with the wrong duration. animation_file_url = 'http://bit.ly/2L18jua' - file_name = 'game.gif.mp4' + file_name = 'game.gif.webm' mime_type = 'video/mp4' - file_size = 4127 + file_size = 5859 caption = "Test *animation*" def test_slot_behaviour(self, animation, mro_slots): @@ -145,9 +145,10 @@ def test_send_animation_url_file(self, bot, chat_id, animation): assert message.animation.file_unique_id != '' assert message.animation.duration == animation.duration - assert message.animation.file_name == animation.file_name + assert message.animation.file_name.startswith( + 'game.gif' + ) == animation.file_name.startswith('game.gif') assert message.animation.mime_type == animation.mime_type - assert message.animation.file_size == animation.file_size @flaky(3, 1) def test_send_animation_caption_entities(self, bot, chat_id, animation):
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: