accept validations.yml without tests and validations, to simply run and log trace
This commit is contained in:
parent
793f51be69
commit
ded9226e2a
@ -62,6 +62,7 @@ for test_name in [name for name in os.listdir(tests_dir) if os.path.isdir(os.pat
|
||||
# Run validations
|
||||
with open(validation_file, 'r') as f:
|
||||
validations = load(f)
|
||||
if validations!=None:
|
||||
for k in validations.keys():
|
||||
# Identify checker class
|
||||
name = k.title().replace("_","")+"Checker"
|
||||
|
@ -141,6 +141,7 @@ class Checker:
|
||||
def check(self):
|
||||
is_ok = True
|
||||
self.logs=self.test_id+"\n"
|
||||
if self.yml!=None:
|
||||
for test in self.yml:
|
||||
name=test["test"].title().replace("_","")+"Test"
|
||||
klass = globals()[name]
|
||||
|
Loading…
Reference in New Issue
Block a user