X Tutup
Skip to content

Commit 36dc163

Browse files
committed
Move old tests to legacy dir until get new ones written
1 parent e1edeb7 commit 36dc163

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed
Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def testGetMe(self):
5151
bot = self._bot.getMe()
5252

5353
self.assertTrue(self.is_json(bot.to_json()))
54-
self.assertEqual(bot.id, 120405045)
54+
self.assertEqual(bot.id, 133505823)
5555
self.assertEqual(bot.first_name, 'Toledo\'s Palace Bot')
5656
self.assertEqual(bot.last_name, '')
5757
self.assertEqual(bot.username, 'ToledosPalaceBot')
@@ -135,30 +135,6 @@ def testSendGIFURLPhoto(self):
135135
self.assertTrue(self.is_json(message.to_json()))
136136
self.assertEqual(message.photo[0].file_size, 684)
137137

138-
def testSendAudio(self):
139-
'''Test the telegram.Bot sendAudio method'''
140-
print('Testing sendAudio - File')
141-
message = self._bot.sendAudio(audio=open('tests/data/telegram.mp3', 'rb'),
142-
chat_id=self._chat_id,
143-
performer='Leandro Toledo',
144-
title='Teste')
145-
146-
self.assertTrue(self.is_json(message.to_json()))
147-
self.assertEqual(message.audio.file_size, 28232)
148-
self.assertEqual(message.audio.performer, 'Leandro Toledo')
149-
self.assertEqual(message.audio.title, 'Teste')
150-
151-
def testResendAudio(self):
152-
'''Test the telegram.Bot sendAudio method'''
153-
print('Testing sendAudio - Resend')
154-
message = self._bot.sendAudio(audio='BQADAQADwwcAAjU8LQdBRsl3_qD2TAI',
155-
chat_id=self._chat_id,
156-
performer='Leandro Toledo', # Bug #39
157-
title='Teste') # Bug #39
158-
159-
self.assertTrue(self.is_json(message.to_json()))
160-
self.assertEqual(message.audio.file_id, 'BQADAQADwwcAAjU8LQdBRsl3_qD2TAI')
161-
162138
def testSendVoice(self):
163139
'''Test the telegram.Bot sendVoice method'''
164140
print('Testing sendVoice - File')

0 commit comments

Comments
 (0)
X Tutup