1 parent ec8cd37 commit d2623d2Copy full SHA for d2623d2
1 file changed
tests/test_voice.py
@@ -37,7 +37,7 @@ def setUp(self):
37
self.voice_file = open('tests/data/telegram.ogg', 'rb')
38
self.voice_file_id = 'AwADAQADTgADHyP1B_mbw34svXPHAg'
39
self.voice_file_url = 'https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/master/tests/data/telegram.ogg'
40
- self.duration = 0
+ self.duration = 3
41
self.mime_type = 'audio/ogg'
42
self.file_size = 9199
43
@@ -135,7 +135,7 @@ def test_send_voice_resend(self):
135
voice = message.voice
136
137
self.assertEqual(voice.file_id, self.voice_file_id)
138
- self.assertEqual(voice.duration, self.duration)
+ self.assertEqual(voice.duration, 0)
139
self.assertEqual(voice.mime_type, self.mime_type)
140
141
def test_voice_de_json(self):
0 commit comments