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
|
# Run validations
|
||||||
with open(validation_file, 'r') as f:
|
with open(validation_file, 'r') as f:
|
||||||
validations = load(f)
|
validations = load(f)
|
||||||
|
if validations!=None:
|
||||||
for k in validations.keys():
|
for k in validations.keys():
|
||||||
# Identify checker class
|
# Identify checker class
|
||||||
name = k.title().replace("_","")+"Checker"
|
name = k.title().replace("_","")+"Checker"
|
||||||
|
@ -141,6 +141,7 @@ class Checker:
|
|||||||
def check(self):
|
def check(self):
|
||||||
is_ok = True
|
is_ok = True
|
||||||
self.logs=self.test_id+"\n"
|
self.logs=self.test_id+"\n"
|
||||||
|
if self.yml!=None:
|
||||||
for test in self.yml:
|
for test in self.yml:
|
||||||
name=test["test"].title().replace("_","")+"Test"
|
name=test["test"].title().replace("_","")+"Test"
|
||||||
klass = globals()[name]
|
klass = globals()[name]
|
||||||
|
Loading…
Reference in New Issue
Block a user