#96: refactor skip feature:

1, with skip keyword, skip current test unconditionally;
2, with skipIf keyword, you can skip current test with condition; condition evaluation can be defined in debugtalk.py function.
This commit is contained in:
debugtalk
2018-02-08 15:59:17 +08:00
parent 177856c37c
commit c504f305f1
6 changed files with 44 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ class Context(object):
def exec_content_functions(self, content):
""" execute functions in content.
"""
self.testcase_parser.eval_content_functions(content)
return self.testcase_parser.eval_content_functions(content)
def eval_check_item(self, validator, resp_obj):
""" evaluate check item in validator