Skip to content

Commit 820f4e1

Browse files
Eldinnietsnoam
authored andcommitted
Fix user profile photo unitests (python-telegram-bot#967)
Telegram changed something again.
1 parent eb67c03 commit 820f4e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ def test_get_user_profile_photos(self, bot):
188188
chat_id = 12173560 # hardcoded Leandro's chat_id
189189
user_profile_photos = bot.get_user_profile_photos(chat_id)
190190

191-
assert user_profile_photos.photos[0][0].file_size == 12421
191+
assert user_profile_photos.photos[0][0].file_size == 9999
192192

193193
@flaky(3, 1)
194194
@pytest.mark.timeout(10)
195195
def test_get_one_user_profile_photo(self, bot):
196196
chat_id = 12173560 # hardcoded Leandro's chat_id
197197
user_profile_photos = bot.get_user_profile_photos(chat_id, offset=0, limit=1)
198-
assert user_profile_photos.photos[0][0].file_size == 12421
198+
assert user_profile_photos.photos[0][0].file_size == 9999
199199

200200
# get_file is tested multiple times in the test_*media* modules.
201201

0 commit comments

Comments
 (0)