mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
bugfix: make compatible with None field in testcase
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user