File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments