1
0
Fork 0
mirror of synced 2025-07-04 04:17:29 +02:00

Add support for wav files

This commit is contained in:
jvoisin 2020-01-01 17:34:42 +01:00
parent 693408f1a6
commit ee704db2ff
3 changed files with 22 additions and 1 deletions

View file

@ -127,6 +127,11 @@ class TestGetMeta(unittest.TestCase):
self.assertEqual(meta['Model'], 'C7070WZ')
self.assertEqual(meta['ModifyDate'], '2005:12:26 17:09:35')
def test_wav(self):
p = audio.WAVParser('./tests/data/dirty.wav')
meta = p.get_meta()
self.assertEqual(meta['Artist'], 'jvoisin')
def test_mp3(self):
p = audio.MP3Parser('./tests/data/dirty.mp3')
meta = p.get_meta()
@ -301,6 +306,11 @@ class TestCleaning(unittest.TestCase):
'parser': images.JPGParser,
'meta': {'Comment': 'Created with GIMP'},
'expected_meta': {},
}, {
'name': 'wav',
'parser': audio.WAVParser,
'meta': {'Comment': 'Zomg, a comment!'},
'expected_meta': {},
}, {
'name': 'mp3',
'parser': audio.MP3Parser,