X Tutup
Skip to content

Commit d2623d2

Browse files
committed
test_voice.py: adapt to latest changes in the API
1 parent ec8cd37 commit d2623d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_voice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUp(self):
3737
self.voice_file = open('tests/data/telegram.ogg', 'rb')
3838
self.voice_file_id = 'AwADAQADTgADHyP1B_mbw34svXPHAg'
3939
self.voice_file_url = 'https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/master/tests/data/telegram.ogg'
40-
self.duration = 0
40+
self.duration = 3
4141
self.mime_type = 'audio/ogg'
4242
self.file_size = 9199
4343

@@ -135,7 +135,7 @@ def test_send_voice_resend(self):
135135
voice = message.voice
136136

137137
self.assertEqual(voice.file_id, self.voice_file_id)
138-
self.assertEqual(voice.duration, self.duration)
138+
self.assertEqual(voice.duration, 0)
139139
self.assertEqual(voice.mime_type, self.mime_type)
140140

141141
def test_voice_de_json(self):

0 commit comments

Comments
 (0)
X Tutup