mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Check that implementations are uniquely named
This commit is contained in:
parent
fe010541ec
commit
cffe944bbf
@ -29,6 +29,8 @@ def check_metadata(scheme):
|
|||||||
|
|
||||||
implementation_names_in_yaml = set(
|
implementation_names_in_yaml = set(
|
||||||
i['name'] for i in metadata['implementations'])
|
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)
|
implementations_on_disk = set(i.name for i in scheme.implementations)
|
||||||
if implementation_names_in_yaml != implementations_on_disk:
|
if implementation_names_in_yaml != implementations_on_disk:
|
||||||
raise AssertionError("Implementations in YAML file {} and "
|
raise AssertionError("Implementations in YAML file {} and "
|
||||||
|
Loading…
Reference in New Issue
Block a user