bugfix: make compatible with None field in testcase

This commit is contained in:
httprunner
2017-07-14 15:41:44 +08:00
parent 318f5b4130
commit 7109911ad9

View File

@@ -165,7 +165,7 @@ class Context(object):
return data
# data is in string format here
data = data.strip()
data = "" if data is None else data.strip()
if utils.is_variable(data):
# variable marker: $var
variable_name = utils.parse_variable(data)