mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-26 19:29:01 +00:00
PICARD-2254: Added tests for performer tags with multiple colons
This commit is contained in:
@@ -975,6 +975,12 @@ class ScriptParserTest(PicardTestCase):
|
||||
result = self.parser.eval("$performer(guitar, / )", context=context)
|
||||
self.assertEqual({'Foo1', 'Foo2'}, set(result.split(' / ')))
|
||||
|
||||
def test_cmd_performer_multi_colons(self):
|
||||
context = Metadata()
|
||||
context['performer:CV:松井栞里'] = '仁奈(CV:大出千夏)'
|
||||
result = self.parser.eval("$performer(CV:松井栞里)", context=context)
|
||||
self.assertEqual('仁奈(CV:大出千夏)', result)
|
||||
|
||||
def test_cmd_matchedtracks(self):
|
||||
file = MagicMock()
|
||||
file.parent.album.get_num_matched_tracks.return_value = 42
|
||||
|
||||
Reference in New Issue
Block a user