From b8137c05059dfa0f2096530bb31a33cc5790c74c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 30 Mar 2017 08:58:05 +0100 Subject: [PATCH] Allow easier validator repeating --- md_pdf/config/validate.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/md_pdf/config/validate.py b/md_pdf/config/validate.py index 3247993..8660401 100644 --- a/md_pdf/config/validate.py +++ b/md_pdf/config/validate.py @@ -49,9 +49,12 @@ def validate_bibliography(config): def validate_config(config): - check_required_keys(config) - test_input(config) - test_output(config) - validate_bibliography(config) + for validator in [ + check_required_keys, + test_input, + test_output, + validate_bibliography + ]: + validator(config)