Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ def test_get_user_profile_photos(self, bot):
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.

Expand Down