Merge branch 'master' into master

This commit is contained in:
debugtalk
2019-09-19 00:29:42 +08:00
committed by GitHub
11 changed files with 102 additions and 20 deletions

View File

@@ -6,8 +6,6 @@ import jsonpath
from httprunner import exceptions, logger, utils
from httprunner.compat import OrderedDict, basestring, is_py2
from requests.models import PreparedRequest
from requests.structures import CaseInsensitiveDict
text_extractor_regexp_compile = re.compile(r".*\(.*\).*")
@@ -112,7 +110,7 @@ class ResponseObject(object):
"content.person.name.first_name"
"""
# string.split(sep=None, maxsplit=-1) -> list of strings
# string.split(sep=None, maxsplit=1) -> list of strings
# e.g. "content.person.name" => ["content", "person.name"]
try:
top_query, sub_query = field.split('.', 1)