Repair undefined box section check
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
345ff9ca7e
commit
4c787b5628
@ -59,7 +59,7 @@ def _abort(msg):
|
|||||||
|
|
||||||
def _config():
|
def _config():
|
||||||
configmap = {'boxes': {}, 'suites': {}, 'tests': {}}
|
configmap = {'boxes': {}, 'suites': {}, 'tests': {}}
|
||||||
if not config.options('box'):
|
if not 'box' in config.sections():
|
||||||
_abort('No "box" section found in the configuration file')
|
_abort('No "box" section found in the configuration file')
|
||||||
multis = {'boxes': {'prefix': 'box.', 'singular': 'box'}, 'suites': {'prefix': 'suite.', 'singular': 'suite'}, 'tests': {'prefix': 'test.', 'singular': 'test'}}
|
multis = {'boxes': {'prefix': 'box.', 'singular': 'box'}, 'suites': {'prefix': 'suite.', 'singular': 'suite'}, 'tests': {'prefix': 'test.', 'singular': 'test'}}
|
||||||
for multi, multiconf in multis.items():
|
for multi, multiconf in multis.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user