mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-28 04:07:36 +00:00
PICARD-2174: Optimize implementation to display format specific metadata
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user