mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Attempt to fix failing test case
This commit is contained in:
parent
61b4ca8a37
commit
19b4e35ee5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user