mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
LastGenre tests: setup_config: add prefer_specific
Allow to specify prefer_specific in lastgenre tests configuration setup.
This commit is contained in:
parent
cef9a3311c
commit
0f847aefcb
1 changed files with 3 additions and 1 deletions
|
|
@ -36,9 +36,11 @@ class LastGenrePluginTest(unittest.TestCase, TestHelper):
|
|||
def tearDown(self):
|
||||
self.teardown_beets()
|
||||
|
||||
def _setup_config(self, whitelist=False, canonical=False, count=1):
|
||||
def _setup_config(self, whitelist=False, canonical=False, count=1,
|
||||
prefer_specific=False):
|
||||
config['lastgenre']['canonical'] = canonical
|
||||
config['lastgenre']['count'] = count
|
||||
config['lastgenre']['prefer_specific'] = prefer_specific
|
||||
if isinstance(whitelist, (bool, six.string_types)):
|
||||
# Filename, default, or disabled.
|
||||
config['lastgenre']['whitelist'] = whitelist
|
||||
|
|
|
|||
Loading…
Reference in a new issue