Commit 1bf1bb85 authored by Vincent Michel's avatar Vincent Michel

Remove DEFAULTS from config

parent 71af3f54
......@@ -366,4 +366,4 @@ def get_config(filename):
config = configparser.ConfigParser(
comment_prefixes=['START', 'END', '#', '*****'])
config.read(filename)
return {key: dict(section) for section in config.items()}
return {section: dict(config[section]) for section in config.sections()}
......@@ -468,3 +468,4 @@ def test_get_config(interface):
filename = interface.get_config_files('.')[0]
d = interface.get_config(filename)
assert d['detector definitions']['alias'] == 'detector1'
assert 'DEFAULT' not in d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment