mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 00:29:37 +08:00
fix: convert jmespath.search result to int/float
This commit is contained in:
@@ -169,11 +169,10 @@ class ResponseObject(object):
|
||||
check_value = parse_data(
|
||||
check_item, variables_mapping, functions_mapping
|
||||
)
|
||||
check_value = parse_string_value(check_value)
|
||||
else:
|
||||
check_value = jmespath.search(check_item, self.resp_obj_meta)
|
||||
|
||||
check_value = parse_string_value(check_value)
|
||||
|
||||
# comparator
|
||||
assert_method = u_validator["assert"]
|
||||
assert_func = get_mapping_function(assert_method, functions_mapping)
|
||||
|
||||
Reference in New Issue
Block a user