Fix tests to use config['ui']['color'] instead of top-level color

This commit is contained in:
Tom Jaspers 2015-01-29 14:04:37 +01:00
parent d3fce35481
commit e7378c77a7
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ class TestHelper(object):
self.config['plugins'] = []
self.config['verbose'] = True
self.config['color'] = False
self.config['ui']['color'] = False
self.config['threaded'] = False
self.libdir = os.path.join(self.temp_dir, 'libdir')

View file

@ -888,7 +888,7 @@ class ShowChangeTest(_common.TestCase):
items = items or self.items
info = info or self.info
mapping = dict(zip(items, info.tracks))
config['color'] = False
config['ui']['color'] = False
album_dist = distance(items, info, mapping)
album_dist._penalties = {'album': [dist]}
commands.show_change(