new shorter audiofile

This commit is contained in:
Eldin 2017-06-21 19:01:20 +02:00
parent 1f9f3ae8a1
commit 976ad1b987
2 changed files with 3 additions and 9 deletions

Binary file not shown.

View file

@ -69,7 +69,7 @@ class AudioTest(BaseTest, unittest.TestCase):
self.assertEqual(self.audio.performer, None)
self.assertEqual(self.audio.title, None)
self.assertEqual(self.audio.mime_type, 'audio/mpeg')
self.assertEqual(self.audio.file_size, 28232)
self.assertEqual(self.audio.file_size, 122920)
@flaky(3, 1)
@timeout(10)
@ -106,10 +106,7 @@ class AudioTest(BaseTest, unittest.TestCase):
self.assertIsInstance(audio, telegram.Audio)
self.assertIsInstance(audio.file_id, str)
self.assertNotEqual(audio.file_id, None)
# For some reason duration on same file is different from web.
# hardcoding duration. Uncomment next line when fixed
# self.assertEqual(audio.duration, self.audio.duration)
self.assertEqual(audio.duration, 4)
self.assertEqual(audio.duration, self.audio.duration)
self.assertEqual(audio.mime_type, self.audio.mime_type)
self.assertEqual(audio.file_size, self.audio.file_size)
@ -128,10 +125,7 @@ class AudioTest(BaseTest, unittest.TestCase):
self.assertIsInstance(audio, telegram.Audio)
self.assertIsInstance(audio.file_id, str)
self.assertNotEqual(audio.file_id, None)
# For some reason duration on same file is different from web.
# hardcoding duration. Uncomment next line when fixed
# self.assertEqual(audio.duration, self.audio.duration)
self.assertEqual(audio.duration, 4)
self.assertEqual(audio.duration, self.audio.duration)
self.assertEqual(audio.mime_type, self.audio.mime_type)
self.assertEqual(audio.file_size, self.audio.file_size)