mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 01:09:44 +08:00
fix: remove unused import
This commit is contained in:
@@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
import ast
|
import ast
|
||||||
import builtins
|
import builtins
|
||||||
import os
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from httprunner import exceptions, utils, validator
|
from httprunner import exceptions, utils, validator
|
||||||
from httprunner.compat import basestring, builtin_str, numeric_types, str
|
from httprunner.compat import basestring, numeric_types, str
|
||||||
|
|
||||||
# use $$ to escape $ notation
|
# use $$ to escape $ notation
|
||||||
dolloar_regex_compile = re.compile(r"\$\$")
|
dolloar_regex_compile = re.compile(r"\$\$")
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ import re
|
|||||||
|
|
||||||
from httprunner import exceptions, logger, utils
|
from httprunner import exceptions, logger, utils
|
||||||
from httprunner.compat import OrderedDict, basestring, is_py2
|
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".*\(.*\).*")
|
text_extractor_regexp_compile = re.compile(r".*\(.*\).*")
|
||||||
|
|
||||||
@@ -81,7 +79,7 @@ class ResponseObject(object):
|
|||||||
"content.person.name.first_name"
|
"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"]
|
# e.g. "content.person.name" => ["content", "person.name"]
|
||||||
try:
|
try:
|
||||||
top_query, sub_query = field.split('.', 1)
|
top_query, sub_query = field.split('.', 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user