Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tests/test_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def audio_file():
@pytest.fixture(scope='class')
def audio(bot, chat_id):
with open('tests/data/telegram.mp3', 'rb') as f:
return bot.send_audio(chat_id, audio=f, timeout=10).audio
return bot.send_audio(chat_id, audio=f, timeout=50).audio


class TestAudio(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def document_file():
@pytest.fixture(scope='class')
def document(bot, chat_id):
with open('tests/data/telegram.png', 'rb') as f:
return bot.send_document(chat_id, document=f).document
return bot.send_document(chat_id, document=f, timeout=50).document


class TestDocument(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def photo_file():
@pytest.fixture(scope='class')
def _photo(bot, chat_id):
with open('tests/data/telegram.jpg', 'rb') as f:
return bot.send_photo(chat_id, photo=f, timeout=10).photo
return bot.send_photo(chat_id, photo=f, timeout=50).photo


@pytest.fixture(scope='class')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def sticker_file():
@pytest.fixture(scope='class')
def sticker(bot, chat_id):
with open('tests/data/telegram.webp', 'rb') as f:
return bot.send_sticker(chat_id, sticker=f, timeout=10).sticker
return bot.send_sticker(chat_id, sticker=f, timeout=50).sticker


class TestSticker(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def video_file():
@pytest.fixture(scope='class')
def video(bot, chat_id):
with open('tests/data/telegram.mp4', 'rb') as f:
return bot.send_video(chat_id, video=f, timeout=10).video
return bot.send_video(chat_id, video=f, timeout=50).video


class TestVideo(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_videonote.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def video_note_file():
@pytest.fixture(scope='class')
def video_note(bot, chat_id):
with open('tests/data/telegram2.mp4', 'rb') as f:
return bot.send_video_note(chat_id, video_note=f, timeout=10).video_note
return bot.send_video_note(chat_id, video_note=f, timeout=50).video_note


class TestVideoNote(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def voice_file():
@pytest.fixture(scope='class')
def voice(bot, chat_id):
with open('tests/data/telegram.ogg', 'rb') as f:
return bot.send_voice(chat_id, voice=f, timeout=10).voice
return bot.send_voice(chat_id, voice=f, timeout=50).voice


class TestVoice(object):
Expand Down