From cffe944bbfba7ba84e1ec9260fc2a462c20d3728 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Mon, 8 Apr 2019 11:32:12 +0200 Subject: [PATCH] Check that implementations are uniquely named --- test/test_metadata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_metadata.py b/test/test_metadata.py index 4afcfd8c..f98d7a1b 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -29,6 +29,8 @@ def check_metadata(scheme): implementation_names_in_yaml = set( i['name'] for i in metadata['implementations']) + if len(implementation_names_in_yaml) != len(metadata['implementations']): + raise AssertionError("Implementations in YAML file are not distinct") implementations_on_disk = set(i.name for i in scheme.implementations) if implementation_names_in_yaml != implementations_on_disk: raise AssertionError("Implementations in YAML file {} and "