mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
add tests for ALAC (#295)
This commit is contained in:
parent
3a715a6703
commit
cff06431cc
2 changed files with 15 additions and 0 deletions
BIN
test/rsrc/full.alac.m4a
Normal file
BIN
test/rsrc/full.alac.m4a
Normal file
Binary file not shown.
|
|
@ -208,6 +208,15 @@ READ_ONLY_CORRECT_DICTS = {
|
|||
'bitdepth': 0,
|
||||
'channels': 1,
|
||||
},
|
||||
|
||||
'full.alac.m4a': {
|
||||
'length': 1.0,
|
||||
'bitrate': 55072,
|
||||
'format': 'ALAC',
|
||||
'samplerate': 0,
|
||||
'bitdepth': 0,
|
||||
'channels': 0,
|
||||
},
|
||||
}
|
||||
|
||||
TEST_FILES = {
|
||||
|
|
@ -267,6 +276,9 @@ class AllFilesMixin(object):
|
|||
def test_wma(self):
|
||||
self._run('full', 'wma')
|
||||
|
||||
def test_alac(self):
|
||||
self._run('full', 'alac.m4a')
|
||||
|
||||
# Special test for advanced release date.
|
||||
def test_date_mp3(self):
|
||||
self._run('date', 'mp3')
|
||||
|
|
@ -429,6 +441,9 @@ class ReadOnlyTest(unittest.TestCase):
|
|||
def test_wma(self):
|
||||
self._run('full.wma')
|
||||
|
||||
def test_alac(self):
|
||||
self._run('full.alac.m4a')
|
||||
|
||||
def suite():
|
||||
return unittest.TestLoader().loadTestsFromName(__name__)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue