Skip to content

Commit 4bf63d7

Browse files
committed
reformat code
1 parent 991ee2b commit 4bf63d7

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

tests/test_video.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
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
2321
import os
22+
import unittest
2423

2524
from flaky import flaky
2625

@@ -31,6 +30,7 @@
3130

3231
class 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)

tests/test_videonote.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
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"""
2020
import os
21-
import sys
2221
import unittest
2322

2423
from flaky import flaky

tests/test_voice.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"""This module contains an object that represents Tests for Telegram Voice"""
2020

2121
import os
22-
import sys
2322
import unittest
2423

2524
from 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'

0 commit comments

Comments
 (0)