Allow configure section to be absent

This commit is contained in:
James Page
2019-02-05 10:55:46 +00:00
parent bf90ca9939
commit 7bc8fb6da2

View File

@@ -57,8 +57,9 @@ def func_test_runner(keep_model=False, smoke=False, dev=False, bundle=None):
deploy.deploy(
os.path.join(utils.BUNDLE_DIR, '{}.yaml'.format(t)),
model_name)
# Configure
configure.configure(model_name, test_config['configure'])
if 'configure' in test_config:
# Configure
configure.configure(model_name, test_config['configure'])
# Test
test.test(model_name, test_config['tests'])
# Destroy