mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 14:32:55 +01:00
LastGenre test: prefer_specific without canonical
This tests commit cef9a331.
This commit is contained in:
parent
0f847aefcb
commit
96120d5c6d
1 changed files with 15 additions and 0 deletions
|
|
@ -138,6 +138,21 @@ class LastGenrePluginTest(unittest.TestCase, TestHelper):
|
|||
self.assertEqual(self.plugin._resolve_genres(['iota blues']),
|
||||
u'')
|
||||
|
||||
def test_prefer_specific_loads_tree(self):
|
||||
"""When prefer_specific is enabled but canonical is not the
|
||||
tree still has to be loaded.
|
||||
"""
|
||||
self._setup_config(prefer_specific=True, canonical=False)
|
||||
self.assertNotEqual(self.plugin.c14n_branches, [])
|
||||
|
||||
def test_prefer_specific_without_canonical(self):
|
||||
"""When prefer_specific is enabled but canonical is not the
|
||||
tree still has to be loaded.
|
||||
"""
|
||||
self._setup_config(prefer_specific=True, canonical=False)
|
||||
self.assertEqual(self.plugin._resolve_genres(['delta blues']),
|
||||
u'Delta Blues')
|
||||
|
||||
def test_no_duplicate(self):
|
||||
"""Remove duplicated genres.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue