diff --git a/tsstats/tests/test_config.py b/tsstats/tests/test_config.py index 279b838..5a561ab 100644 --- a/tsstats/tests/test_config.py +++ b/tsstats/tests/test_config.py @@ -16,7 +16,9 @@ configpath = abspath('tsstats/tests/res/test.cfg') def create_config(values, key='General'): config = ConfigParser() - config[key] = values + config.add_section('General') + for option, value in values.items(): + config.set('General', option, value) with open(configpath, 'w') as configfile: config.write(configfile)