Updated tests for all formats and tags, excluding ratings.

This commit is contained in:
Philipp Wolfer
2010-04-12 01:03:14 +02:00
parent 269aae4de8
commit 26e273c612

View File

@@ -102,9 +102,11 @@ class FLACTest(FormatsTest):
'discnumber' : '1',
'totaldiscs' : '2',
'compilation' : '1',
'comment' : 'Foo',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
@@ -132,7 +134,7 @@ class FLACTest(FormatsTest):
'releasetype' : 'Foo',
'asin' : 'Foo',
#'gapless' : '1',
#'podcast' : 'Foo',
#'podcast' : '1',
#'podcasturl' : 'Foo',
#'show' : 'Foo',
}
@@ -155,21 +157,23 @@ class WMATest(FormatsTest):
#'performer:guest vocal' : 'Foo',
'remixer' : 'Foo',
#'arranger' : 'Foo',
'engineer' : 'Foo',
#'producer' : 'Foo',
#'engineer' : 'Foo',
'producer' : 'Foo',
#'djmixer' : 'Foo',
#'mixer' : 'Foo',
'grouping' : 'Foo',
'subtitle' : 'Foo',
#'discsubtitle' : 'Foo',
'discsubtitle' : 'Foo',
'tracknumber' : '2',
#'totaltracks' : '10',
'discnumber' : '1',
#'totaldiscs' : '2',
#'compilation' : '1',
'comment' : 'Foo',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
@@ -192,11 +196,12 @@ class WMATest(FormatsTest):
'musicbrainz_trmid' : 'Foo',
'musicbrainz_discid' : 'Foo',
'musicip_puid' : 'Foo',
#'musicip_fingerprint' : 'Foo',
'releasestatus' : 'Foo',
'releasetype' : 'Foo',
#'asin' : 'Foo',
#'gapless' : '1',
#'podcast' : 'Foo',
#'podcast' : '1',
#'podcasturl' : 'Foo',
#'show' : 'Foo',
}
@@ -231,14 +236,15 @@ class MP3Test(FormatsTest):
'discnumber' : '1',
'totaldiscs' : '2',
'compilation' : '1',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'mood' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
# TODO
# 'lyrics' : 'Foo',
'lyrics' : 'Foo',
'media' : 'Foo',
'label' : 'Foo',
'catalognumber' : 'Foo',
@@ -257,12 +263,12 @@ class MP3Test(FormatsTest):
'musicbrainz_trmid' : 'Foo',
'musicbrainz_discid' : 'Foo',
'musicip_puid' : 'Foo',
#'musicip_fingerprint' : 'Foo',
'musicip_fingerprint' : 'Foo',
'releasestatus' : 'Foo',
'releasetype' : 'Foo',
'asin' : 'Foo',
#'gapless' : '1',
#'podcast' : 'Foo',
#'podcast' : '1',
#'podcasturl' : 'Foo',
#'show' : 'Foo',
}
@@ -297,9 +303,11 @@ class OggVorbisTest(FormatsTest):
'discnumber' : '1',
'totaldiscs' : '2',
'compilation' : '1',
'comment' : 'Foo',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
@@ -327,13 +335,13 @@ class OggVorbisTest(FormatsTest):
'releasetype' : 'Foo',
'asin' : 'Foo',
#'gapless' : '1',
#'podcast' : 'Foo',
#'podcast' : '1',
#'podcasturl' : 'Foo',
#'show' : 'Foo',
}
class MP4VorbisTest(FormatsTest):
class MP4Test(FormatsTest):
original = os.path.join('test', 'data', 'test.m4a')
tags = {
'album' : 'Foo Bar',
@@ -341,24 +349,32 @@ class MP4VorbisTest(FormatsTest):
'title' : 'Foo',
'artist' : 'Foo',
'albumartist' : 'Foo',
'date' : '2004-00-00',
'date' : '2004',
#'originaldate' : '1980',
'artist' : 'Foo',
'composer' : 'Foo',
'lyricist' : 'Foo',
'conductor' : 'Foo',
#'performer:guest vocal' : 'Foo',
'remixer' : 'Foo',
#'arranger' : 'Foo',
'engineer' : 'Foo',
'producer' : 'Foo',
'djmixer' : 'Foo',
'mixer' : 'Foo',
'grouping' : 'Foo',
'subtitle' : 'Foo',
'discsubtitle' : 'Foo',
'tracknumber' : '2',
'totaltracks' : '10',
'discnumber' : '1',
'totaldiscs' : '2',
'compilation' : '1',
'comment' : 'Foo',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
@@ -386,7 +402,7 @@ class MP4VorbisTest(FormatsTest):
'releasetype' : 'Foo',
'asin' : 'Foo',
'gapless' : '1',
'podcast' : 'Foo',
'podcast' : '1',
'podcasturl' : 'Foo',
'show' : 'Foo',
}
@@ -421,9 +437,11 @@ class WavPackTest(FormatsTest):
'discnumber' : '1',
'totaldiscs' : '2',
'compilation' : '1',
'comment' : 'Foo',
# FIXME: comment is not tested properly
#'comment' : 'Foo',
#'comment:foo' : 'Foo',
'genre' : 'Foo',
'bpm' : 'Foo',
'bpm' : '80',
'mood' : 'Foo',
'isrc' : 'Foo',
'copyright' : 'Foo',
@@ -451,7 +469,7 @@ class WavPackTest(FormatsTest):
'releasetype' : 'Foo',
'asin' : 'Foo',
#'gapless' : '1',
#'podcast' : 'Foo',
#'podcast' : '1',
#'podcasturl' : 'Foo',
#'show' : 'Foo',
}