mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-19 15:43:24 +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,
|
def __init__(self, file_id, **kwargs):
|
||||||
file_id,
|
|
||||||
**kwargs):
|
|
||||||
self.file_id = file_id
|
self.file_id = file_id
|
||||||
self.thumb = kwargs.get('thumb')
|
self.thumb = kwargs.get('thumb')
|
||||||
self.file_name = kwargs.get('file_name')
|
self.file_name = kwargs.get('file_name')
|
||||||
|
|
|
@ -34,25 +34,10 @@ class GameTest(BaseTest, unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.title = 'Python-telegram-bot Test Game'
|
self.title = 'Python-telegram-bot Test Game'
|
||||||
self.description = 'description'
|
self.description = 'description'
|
||||||
self.photo = [
|
self.photo = [{'width': 640, 'height': 360, 'file_id': 'Blah', 'file_size': 0}]
|
||||||
{
|
|
||||||
'width': 640,
|
|
||||||
'height': 360,
|
|
||||||
'file_id': 'Blah',
|
|
||||||
'file_size': 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
self.text = 'Other description'
|
self.text = 'Other description'
|
||||||
self.text_entities = [
|
self.text_entities = [{'offset': 13, 'length': 17, 'type': telegram.MessageEntity.URL}]
|
||||||
{
|
self.animation = {'file_id': 'Blah'}
|
||||||
'offset': 13,
|
|
||||||
'length': 17,
|
|
||||||
'type': telegram.MessageEntity.URL
|
|
||||||
}
|
|
||||||
]
|
|
||||||
self.animation = {
|
|
||||||
'file_id': 'Blah'
|
|
||||||
}
|
|
||||||
|
|
||||||
self.json_dict = {
|
self.json_dict = {
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
|
@ -120,12 +105,7 @@ class AnimationTest(BaseTest, unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.file_id = 'thisisafileid'
|
self.file_id = 'thisisafileid'
|
||||||
self.thumb = {
|
self.thumb = {'width': 640, 'height': 360, 'file_id': 'Blah', 'file_size': 0}
|
||||||
'width': 640,
|
|
||||||
'height': 360,
|
|
||||||
'file_id': 'Blah',
|
|
||||||
'file_size': 0
|
|
||||||
}
|
|
||||||
self.file_name = 'File name'
|
self.file_name = 'File name'
|
||||||
self.mime_type = 'something/gif'
|
self.mime_type = 'something/gif'
|
||||||
self.file_size = 42
|
self.file_size = 42
|
||||||
|
|
Loading…
Reference in a new issue