mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Fix test_photo.py (#1479)
Telegram had changed their server behaviour again
This commit is contained in:
parent
79dc6edf25
commit
4328eaefb2
2 changed files with 7 additions and 7 deletions
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 32 KiB |
|
@ -49,11 +49,11 @@ def photo(_photo):
|
|||
|
||||
|
||||
class TestPhoto(object):
|
||||
width = 300
|
||||
height = 300
|
||||
width = 800
|
||||
height = 800
|
||||
caption = u'<b>PhotoTest</b> - *Caption*'
|
||||
photo_file_url = 'https://python-telegram-bot.org/static/testfiles/telegram.jpg'
|
||||
file_size = 10209
|
||||
photo_file_url = 'https://python-telegram-bot.org/static/testfiles/telegram_new.jpg'
|
||||
file_size = 29176
|
||||
|
||||
def test_creation(self, thumb, photo):
|
||||
# Make sure file has been uploaded.
|
||||
|
@ -69,9 +69,9 @@ class TestPhoto(object):
|
|||
assert photo.width == self.width
|
||||
assert photo.height == self.height
|
||||
assert photo.file_size == self.file_size
|
||||
assert thumb.width == 90
|
||||
assert thumb.height == 90
|
||||
assert thumb.file_size == 1478
|
||||
assert thumb.width == 320
|
||||
assert thumb.height == 320
|
||||
assert thumb.file_size == 9331
|
||||
|
||||
@flaky(3, 1)
|
||||
@pytest.mark.timeout(10)
|
||||
|
|
Loading…
Reference in a new issue