File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1818# along with this program. If not, see [http://www.gnu.org/licenses/].
1919"""This module contains an object that represents Tests for Telegram Video"""
2020
21- import sys
22- import unittest
2321import os
22+ import unittest
2423
2524from flaky import flaky
2625
3130
3231class VideoTest (BaseTest , unittest .TestCase ):
3332 """This object represents Tests for Telegram Video."""
33+
3434 @classmethod
3535 def setUpClass (cls ):
3636 bot_info = get_bot ()
@@ -102,7 +102,6 @@ def test_send_video_mp4_file(self):
102102 # identical to all_args so obsolete
103103 self .assertEqual (True , True )
104104
105-
106105 @flaky (3 , 1 )
107106 @timeout (10 )
108107 def test_send_video_mp4_file_with_custom_filename (self ):
@@ -214,7 +213,7 @@ def test_error_send_video_empty_file_id(self):
214213 json_dict ['video' ] = ''
215214
216215 with self .assertRaises (telegram .TelegramError ):
217- self ._bot .sendVideo (chat_id = self ._chat_id ,timeout = 10 ,** json_dict )
216+ self ._bot .sendVideo (chat_id = self ._chat_id , timeout = 10 , ** json_dict )
218217
219218 @flaky (3 , 1 )
220219 @timeout (10 )
Original file line number Diff line number Diff line change 1818# along with this program. If not, see [http://www.gnu.org/licenses/].
1919"""This module contains an object that represents Tests for Telegram VideoNote"""
2020import os
21- import sys
2221import unittest
2322
2423from flaky import flaky
Original file line number Diff line number Diff line change 1919"""This module contains an object that represents Tests for Telegram Voice"""
2020
2121import os
22- import sys
2322import unittest
2423
2524from flaky import flaky
@@ -44,7 +43,6 @@ def setUpClass(cls):
4443 cls .mime_type = voice .mime_type
4544 cls .file_size = voice .file_size
4645
47-
4846 def setUp (self ):
4947 self .voice_file = open ('tests/data/telegram.ogg' , 'rb' )
5048 self .voice_file_url = 'https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/master/tests/data/telegram.ogg'
You can’t perform that action at this time.
0 commit comments