def run_test(test): test["check_result"] = promtool.run_test(test_yaml_spec=test["test"], rule_files=test["rule_files"]) return test
def run_test(test): test['check_result'] = promtool.run_test(test_yaml_spec=test['test'], rule_files=test['rule_files']) return test