mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
update type check
This commit is contained in:
@@ -156,13 +156,8 @@ def parse_data(content, mapping):
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
# TODO: refactor type check
|
# TODO: refactor type check
|
||||||
if isinstance(content, bool):
|
# TODO: combine this with TestcaseParser
|
||||||
return content
|
if content is None or isinstance(content, (numeric_types, bool, type)):
|
||||||
|
|
||||||
if isinstance(content, (numeric_types, type)):
|
|
||||||
return content
|
|
||||||
|
|
||||||
if not content:
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
if isinstance(content, (list, set, tuple)):
|
if isinstance(content, (list, set, tuple)):
|
||||||
|
|||||||
Reference in New Issue
Block a user