diff --git a/tests/data/telegram.mp3 b/tests/data/telegram.mp3 index 2c9ea84d1..4b158d2ba 100644 Binary files a/tests/data/telegram.mp3 and b/tests/data/telegram.mp3 differ diff --git a/tests/test_audio.py b/tests/test_audio.py index a0325a8d2..0857144c7 100644 --- a/tests/test_audio.py +++ b/tests/test_audio.py @@ -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)