mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-11 02:39:46 +08:00
bugfix: make compatible with None field in testcase
This commit is contained in:
@@ -165,7 +165,7 @@ class Context(object):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
# data is in string format here
|
# data is in string format here
|
||||||
data = data.strip()
|
data = "" if data is None else data.strip()
|
||||||
if utils.is_variable(data):
|
if utils.is_variable(data):
|
||||||
# variable marker: $var
|
# variable marker: $var
|
||||||
variable_name = utils.parse_variable(data)
|
variable_name = utils.parse_variable(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user