Allow easier validator repeating
This commit is contained in:
parent
b2835a5196
commit
b8137c0505
1 changed files with 7 additions and 4 deletions
|
@ -49,9 +49,12 @@ def validate_bibliography(config):
|
||||||
|
|
||||||
|
|
||||||
def validate_config(config):
|
def validate_config(config):
|
||||||
check_required_keys(config)
|
for validator in [
|
||||||
test_input(config)
|
check_required_keys,
|
||||||
test_output(config)
|
test_input,
|
||||||
validate_bibliography(config)
|
test_output,
|
||||||
|
validate_bibliography
|
||||||
|
]:
|
||||||
|
validator(config)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue