reformat code

This commit is contained in:
Eldin 2017-06-21 00:34:46 +02:00
parent 991ee2bc88
commit 4bf63d7358
3 changed files with 3 additions and 7 deletions

View file

@ -18,9 +18,8 @@
# along with this program. If not, see [http://www.gnu.org/licenses/].
"""This module contains an object that represents Tests for Telegram Video"""
import sys
import unittest
import os
import unittest
from flaky import flaky
@ -31,6 +30,7 @@ from tests.bots import get_bot
class VideoTest(BaseTest, unittest.TestCase):
"""This object represents Tests for Telegram Video."""
@classmethod
def setUpClass(cls):
bot_info = get_bot()
@ -102,7 +102,6 @@ class VideoTest(BaseTest, unittest.TestCase):
# identical to all_args so obsolete
self.assertEqual(True, True)
@flaky(3, 1)
@timeout(10)
def test_send_video_mp4_file_with_custom_filename(self):
@ -214,7 +213,7 @@ class VideoTest(BaseTest, unittest.TestCase):
json_dict['video'] = ''
with self.assertRaises(telegram.TelegramError):
self._bot.sendVideo(chat_id=self._chat_id,timeout=10,**json_dict)
self._bot.sendVideo(chat_id=self._chat_id, timeout=10, **json_dict)
@flaky(3, 1)
@timeout(10)

View file

@ -18,7 +18,6 @@
# along with this program. If not, see [http://www.gnu.org/licenses/].
"""This module contains an object that represents Tests for Telegram VideoNote"""
import os
import sys
import unittest
from flaky import flaky

View file

@ -19,7 +19,6 @@
"""This module contains an object that represents Tests for Telegram Voice"""
import os
import sys
import unittest
from flaky import flaky
@ -44,7 +43,6 @@ class VoiceTest(BaseTest, unittest.TestCase):
cls.mime_type = voice.mime_type
cls.file_size = voice.file_size
def setUp(self):
self.voice_file = open('tests/data/telegram.ogg', 'rb')
self.voice_file_url = 'https://raw.githubusercontent.com/python-telegram-bot/python-telegram-bot/master/tests/data/telegram.ogg'