fix: ensure pytest files are in python module, generate __init__.py on demand

This commit is contained in:
debugtalk
2020-05-27 20:58:40 +08:00
parent 1cebbd0869
commit 082cb12e7f
3 changed files with 23 additions and 13 deletions

View File

@@ -166,7 +166,9 @@ class ResponseObject(object):
check_item = u_validator["check"]
if "$" in check_item:
# check_item is variable or function
check_value = parse_data(check_item, variables_mapping, functions_mapping)
check_value = parse_data(
check_item, variables_mapping, functions_mapping
)
else:
check_value = jmespath.search(check_item, self.resp_obj_meta)