Attempt to fix failing test case

This commit is contained in:
pieter 2015-09-18 21:11:56 +02:00
parent 61b4ca8a37
commit 19b4e35ee5
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class TestTeleBot:
assert ret_msg.voice.mime_type == 'audio/ogg'
def test_get_file(self):
file_data = open('./test_data/record.ogg')
file_data = open('./test_data/record.ogg', 'rb')
tb = telebot.TeleBot(TOKEN)
ret_msg = tb.send_voice(CHAT_ID, file_data)
file_id = ret_msg.voice.file_id