From 820f4e1d59ac2e05c237015843c855e2a2527c6b Mon Sep 17 00:00:00 2001 From: Eldinnie Date: Tue, 9 Jan 2018 16:56:43 +0100 Subject: [PATCH] Fix user profile photo unitests (#967) Telegram changed something again. --- tests/test_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_bot.py b/tests/test_bot.py index ad56d3ee1..b9800ef3e 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -188,14 +188,14 @@ class TestBot(object): chat_id = 12173560 # hardcoded Leandro's chat_id user_profile_photos = bot.get_user_profile_photos(chat_id) - assert user_profile_photos.photos[0][0].file_size == 12421 + assert user_profile_photos.photos[0][0].file_size == 9999 @flaky(3, 1) @pytest.mark.timeout(10) def test_get_one_user_profile_photo(self, bot): chat_id = 12173560 # hardcoded Leandro's chat_id user_profile_photos = bot.get_user_profile_photos(chat_id, offset=0, limit=1) - assert user_profile_photos.photos[0][0].file_size == 12421 + assert user_profile_photos.photos[0][0].file_size == 9999 # get_file is tested multiple times in the test_*media* modules.