mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-01 08:56:27 +01:00
yapf fixes
This commit is contained in:
parent
04feeeff55
commit
32a78722ae
2 changed files with 5 additions and 27 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue