mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
improve tests prefer_specific without canonical
This improves the tests for the changes introduced in
commit cef9a331 LastGenre: allow prefer_specific without canonical.
This commit is contained in:
parent
ceabc72feb
commit
154e6cfca8
1 changed files with 5 additions and 5 deletions
|
|
@ -146,12 +146,12 @@ class LastGenrePluginTest(unittest.TestCase, TestHelper):
|
|||
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.
|
||||
"""Prefer_specific works without canonical.
|
||||
"""
|
||||
self._setup_config(prefer_specific=True, canonical=False)
|
||||
self.assertEqual(self.plugin._resolve_genres(['delta blues']),
|
||||
u'Delta Blues')
|
||||
self._setup_config(prefer_specific=True, canonical=False, count=4)
|
||||
self.assertEqual(self.plugin._resolve_genres(
|
||||
['math rock', 'post-rock']),
|
||||
u'Post-Rock, Math Rock')
|
||||
|
||||
def test_no_duplicate(self):
|
||||
"""Remove duplicated genres.
|
||||
|
|
|
|||
Loading…
Reference in a new issue