Browse Source

pylint (bis)

pull/179/head
Oliverpool 9 years ago
parent
commit
6eb75caeeb
  1. 10
      test/test_content/test_content.py

10
test/test_content/test_content.py

@ -85,21 +85,21 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
config = DEFAULT_CONFIG.copy() config = DEFAULT_CONFIG.copy()
datadirpath = os.path.join(os.path.dirname(__file__), 'datadir') datadirpaths = [os.path.join(os.path.dirname(__file__), 'datadir')]
config['datadir'] = [datadirpath] config['datadir'] = datadirpaths
config['_songdir'] = [ config['_songdir'] = [
DataSubpath(path, 'songs') DataSubpath(path, 'songs')
for path in config['datadir'] for path in datadirpaths
] ]
config['_content_plugins'] = files.load_plugins( config['_content_plugins'] = files.load_plugins(
datadirs=config.get('datadir', []), datadirs=datadirpaths,
root_modules=['content'], root_modules=['content'],
keyword='CONTENT_PLUGINS', keyword='CONTENT_PLUGINS',
) )
config['_song_plugins'] = files.load_plugins( config['_song_plugins'] = files.load_plugins(
datadirs=config.get('datadir', []), datadirs=datadirpaths,
root_modules=['songs'], root_modules=['songs'],
keyword='SONG_RENDERERS', keyword='SONG_RENDERERS',
)['tsg'] )['tsg']

Loading…
Cancel
Save