mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-03 23:23:59 +00:00
tests: PEP8 fixes
This commit is contained in:
@@ -34,7 +34,6 @@ class FakeTagger(QtCore.QObject):
|
||||
QtCore.QObject.log = log
|
||||
self.tagger_stats_changed.connect(self.emit)
|
||||
|
||||
|
||||
def emit(self, *args):
|
||||
pass
|
||||
|
||||
@@ -96,404 +95,404 @@ class FLACTest(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.flac')
|
||||
supports_ratings = True
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
'catalognumber' : 'Foo',
|
||||
'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
#'composersort' : 'Foo',
|
||||
#'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
'asin' : 'Foo',
|
||||
#'gapless' : '1',
|
||||
#'podcast' : '1',
|
||||
#'podcasturl' : 'Foo',
|
||||
#'show' : 'Foo',
|
||||
}
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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',
|
||||
'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
'catalognumber': 'Foo',
|
||||
'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
#'composersort': 'Foo',
|
||||
#'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
'asin': 'Foo',
|
||||
#'gapless': '1',
|
||||
#'podcast': '1',
|
||||
#'podcasturl': 'Foo',
|
||||
#'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class WMATest(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.wma')
|
||||
supports_ratings = True
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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:foo is unsupported in our WMA implementation
|
||||
#'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
#'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
#'catalognumber' : 'Foo',
|
||||
#'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
#'composersort' : 'Foo',
|
||||
#'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
#'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
#'asin' : 'Foo',
|
||||
#'gapless' : '1',
|
||||
#'podcast' : '1',
|
||||
#'podcasturl' : 'Foo',
|
||||
#'show' : 'Foo',
|
||||
}
|
||||
#'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
#'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
#'catalognumber': 'Foo',
|
||||
#'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
#'composersort': 'Foo',
|
||||
#'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
#'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
#'asin': 'Foo',
|
||||
#'gapless': '1',
|
||||
#'podcast': '1',
|
||||
#'podcasturl': 'Foo',
|
||||
#'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class MP3Test(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.mp3')
|
||||
supports_ratings = True
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
'catalognumber' : 'Foo',
|
||||
'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
#'composersort' : 'Foo',
|
||||
#'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
'asin' : 'Foo',
|
||||
#'gapless' : '1',
|
||||
#'podcast' : '1',
|
||||
#'podcasturl' : 'Foo',
|
||||
#'show' : 'Foo',
|
||||
}
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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',
|
||||
'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
'catalognumber': 'Foo',
|
||||
'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
#'composersort': 'Foo',
|
||||
#'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
'asin': 'Foo',
|
||||
#'gapless': '1',
|
||||
#'podcast': '1',
|
||||
#'podcasturl': 'Foo',
|
||||
#'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class OggVorbisTest(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.ogg')
|
||||
supports_ratings = True
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
'catalognumber' : 'Foo',
|
||||
'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
#'composersort' : 'Foo',
|
||||
#'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
'asin' : 'Foo',
|
||||
#'gapless' : '1',
|
||||
#'podcast' : '1',
|
||||
#'podcasturl' : 'Foo',
|
||||
#'show' : 'Foo',
|
||||
}
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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',
|
||||
'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
'catalognumber': 'Foo',
|
||||
'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
#'composersort': 'Foo',
|
||||
#'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
'asin': 'Foo',
|
||||
#'gapless': '1',
|
||||
#'podcast': '1',
|
||||
#'podcasturl': 'Foo',
|
||||
#'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class MP4Test(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.m4a')
|
||||
supports_ratings = False
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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:foo is unsupported in our MP4 implementation
|
||||
#'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
'catalognumber' : 'Foo',
|
||||
'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
'composersort' : 'Foo',
|
||||
'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
'asin' : 'Foo',
|
||||
'gapless' : '1',
|
||||
'podcast' : '1',
|
||||
'podcasturl' : 'Foo',
|
||||
'show' : 'Foo',
|
||||
}
|
||||
#'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
'catalognumber': 'Foo',
|
||||
'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
'composersort': 'Foo',
|
||||
'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
'asin': 'Foo',
|
||||
'gapless': '1',
|
||||
'podcast': '1',
|
||||
'podcasturl': 'Foo',
|
||||
'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class WavPackTest(FormatsTest):
|
||||
original = os.path.join('test', 'data', 'test.wv')
|
||||
supports_ratings = False
|
||||
tags = {
|
||||
'album' : 'Foo Bar',
|
||||
'album' : '1',
|
||||
'title' : 'Foo',
|
||||
'artist' : 'Foo',
|
||||
'albumartist' : 'Foo',
|
||||
'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',
|
||||
'comment:foo' : 'Foo',
|
||||
'genre' : 'Foo',
|
||||
'bpm' : '80',
|
||||
'mood' : 'Foo',
|
||||
'isrc' : 'Foo',
|
||||
'copyright' : 'Foo',
|
||||
'lyrics' : 'Foo',
|
||||
'media' : 'Foo',
|
||||
'label' : 'Foo',
|
||||
'catalognumber' : 'Foo',
|
||||
'barcode' : 'Foo',
|
||||
'encodedby' : 'Foo',
|
||||
'albumsort' : 'Foo',
|
||||
'albumartistsort' : 'Foo',
|
||||
'artistsort' : 'Foo',
|
||||
'titlesort' : 'Foo',
|
||||
#'composersort' : 'Foo',
|
||||
#'showsort' : 'Foo',
|
||||
'musicbrainz_trackid' : 'Foo',
|
||||
'musicbrainz_albumid' : 'Foo',
|
||||
'musicbrainz_artistid' : 'Foo',
|
||||
'musicbrainz_albumartistid' : 'Foo',
|
||||
'musicbrainz_trmid' : 'Foo',
|
||||
'musicbrainz_discid' : 'Foo',
|
||||
'musicip_puid' : 'Foo',
|
||||
#'musicip_fingerprint' : 'Foo',
|
||||
'releasestatus' : 'Foo',
|
||||
'releasetype' : 'Foo',
|
||||
'asin' : 'Foo',
|
||||
#'gapless' : '1',
|
||||
#'podcast' : '1',
|
||||
#'podcasturl' : 'Foo',
|
||||
#'show' : 'Foo',
|
||||
}
|
||||
'album': 'Foo Bar',
|
||||
'album': '1',
|
||||
'title': 'Foo',
|
||||
'artist': 'Foo',
|
||||
'albumartist': 'Foo',
|
||||
'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',
|
||||
'comment:foo': 'Foo',
|
||||
'genre': 'Foo',
|
||||
'bpm': '80',
|
||||
'mood': 'Foo',
|
||||
'isrc': 'Foo',
|
||||
'copyright': 'Foo',
|
||||
'lyrics': 'Foo',
|
||||
'media': 'Foo',
|
||||
'label': 'Foo',
|
||||
'catalognumber': 'Foo',
|
||||
'barcode': 'Foo',
|
||||
'encodedby': 'Foo',
|
||||
'albumsort': 'Foo',
|
||||
'albumartistsort': 'Foo',
|
||||
'artistsort': 'Foo',
|
||||
'titlesort': 'Foo',
|
||||
#'composersort': 'Foo',
|
||||
#'showsort': 'Foo',
|
||||
'musicbrainz_trackid': 'Foo',
|
||||
'musicbrainz_albumid': 'Foo',
|
||||
'musicbrainz_artistid': 'Foo',
|
||||
'musicbrainz_albumartistid': 'Foo',
|
||||
'musicbrainz_trmid': 'Foo',
|
||||
'musicbrainz_discid': 'Foo',
|
||||
'musicip_puid': 'Foo',
|
||||
#'musicip_fingerprint': 'Foo',
|
||||
'releasestatus': 'Foo',
|
||||
'releasetype': 'Foo',
|
||||
'asin': 'Foo',
|
||||
#'gapless': '1',
|
||||
#'podcast': '1',
|
||||
#'podcasturl': 'Foo',
|
||||
#'show': 'Foo',
|
||||
}
|
||||
|
||||
|
||||
class TestCoverArt(unittest.TestCase):
|
||||
@@ -532,8 +531,14 @@ class TestCoverArt(unittest.TestCase):
|
||||
# This checks a mutagen error with ASF files.
|
||||
dummyload = "a" * 1024 * 128
|
||||
tests = {
|
||||
'jpg': {'mime': 'image/jpeg', 'head': 'JFIF'},
|
||||
'png': {'mime': 'image/png', 'head': 'PNG'},
|
||||
'jpg': {
|
||||
'mime': 'image/jpeg',
|
||||
'head': 'JFIF'
|
||||
},
|
||||
'png': {
|
||||
'mime': 'image/png',
|
||||
'head': 'PNG'
|
||||
},
|
||||
}
|
||||
for t in tests:
|
||||
f = picard.formats.open(self.filename)
|
||||
|
||||
Reference in New Issue
Block a user