diff --git a/tests/integration/manifests/__init__.py b/tests/integration/manifests/__init__.py index 7d84774..dd6bfa3 100644 --- a/tests/integration/manifests/__init__.py +++ b/tests/integration/manifests/__init__.py @@ -5,11 +5,11 @@ from bootstrapvz.common.tools import load_data partial_json = glob.glob(os.path.join(os.path.dirname(__file__), '*.yml')) partial_yaml = glob.glob(os.path.join(os.path.dirname(__file__), '*.json')) -def dictkey(path): - return -# yaml overrides json partials = {} for path in partial_json + partial_yaml: key = os.path.splitext(os.path.basename(path))[0] + if key in partials: + msg = 'Error when loading partial manifests: The partial {key} exists twice'.format(key=key) + raise Exception(msg) partials[key] = load_data(path)