yapf fixes

This commit is contained in:
Noam Meltzer 2016-10-12 23:33:52 +03:00
parent 04feeeff55
commit 32a78722ae
2 changed files with 5 additions and 27 deletions

View file

@ -35,9 +35,7 @@ class Animation(TelegramObject):
"""
def __init__(self,
file_id,
**kwargs):
def __init__(self, file_id, **kwargs):
self.file_id = file_id
self.thumb = kwargs.get('thumb')
self.file_name = kwargs.get('file_name')

View file

@ -34,25 +34,10 @@ class GameTest(BaseTest, unittest.TestCase):
def setUp(self):
self.title = 'Python-telegram-bot Test Game'
self.description = 'description'
self.photo = [
{
'width': 640,
'height': 360,
'file_id': 'Blah',
'file_size': 0
}
]
self.photo = [{'width': 640, 'height': 360, 'file_id': 'Blah', 'file_size': 0}]
self.text = 'Other description'
self.text_entities = [
{
'offset': 13,
'length': 17,
'type': telegram.MessageEntity.URL
}
]
self.animation = {
'file_id': 'Blah'
}
self.text_entities = [{'offset': 13, 'length': 17, 'type': telegram.MessageEntity.URL}]
self.animation = {'file_id': 'Blah'}
self.json_dict = {
'title': self.title,
@ -120,12 +105,7 @@ class AnimationTest(BaseTest, unittest.TestCase):
def setUp(self):
self.file_id = 'thisisafileid'
self.thumb = {
'width': 640,
'height': 360,
'file_id': 'Blah',
'file_size': 0
}
self.thumb = {'width': 640, 'height': 360, 'file_id': 'Blah', 'file_size': 0}
self.file_name = 'File name'
self.mime_type = 'something/gif'
self.file_size = 42