mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Attempt to fix failing test case
This commit is contained in:
@@ -156,7 +156,7 @@ class TestTeleBot:
|
|||||||
assert ret_msg.voice.mime_type == 'audio/ogg'
|
assert ret_msg.voice.mime_type == 'audio/ogg'
|
||||||
|
|
||||||
def test_get_file(self):
|
def test_get_file(self):
|
||||||
file_data = open('./test_data/record.ogg')
|
file_data = open('./test_data/record.ogg', 'rb')
|
||||||
tb = telebot.TeleBot(TOKEN)
|
tb = telebot.TeleBot(TOKEN)
|
||||||
ret_msg = tb.send_voice(CHAT_ID, file_data)
|
ret_msg = tb.send_voice(CHAT_ID, file_data)
|
||||||
file_id = ret_msg.voice.file_id
|
file_id = ret_msg.voice.file_id
|
||||||
|
|||||||
Reference in New Issue
Block a user