PICARD-2174: Optimize implementation to display format specific metadata

This commit is contained in:
Sophist
2021-04-03 17:40:05 +02:00
committed by Philipp Wolfer
parent 1a45ca92ef
commit a5fcde1dd3
5 changed files with 69 additions and 42 deletions

View File

@@ -2,7 +2,7 @@
#
# Picard, the next-generation MusicBrainz tagger
#
# Copyright (C) 2018-2020 Philipp Wolfer
# Copyright (C) 2018-2021 Philipp Wolfer
# Copyright (C) 2019-2020 Laurent Monin
#
# This program is free software; you can redistribute it and/or
@@ -87,6 +87,11 @@ class DataObjectTest(PicardTestCase):
self.assertEqual(None, self.file.acoustid_fingerprint)
self.assertEqual(0, self.file.acoustid_length)
def format_specific_metadata(self):
values = ['foo', 'bar']
self.file.metadata['test'] = values
self.assertEqual(values, self.file.format_specific_metadata(self.file.metadata, 'test'))
class TestPreserveTimes(PicardTestCase):